This piece of code is acting like it is not in a heredoc... [ SOLVED! see, below ]
say qq:to/HERE/;
sub $f<functionName>($argsList) {
die 'Function requires XML::LibXML'
unless \$XSLT_xml_support;
sub _$f<functionName>($fullArgsList)
is native(XSLT)
is symbol('$f<functionName>')
$returns
\{ \* \};
_$f<functionName>($argsList);
}
HERE
This is supposed to output code, but is getting parsed as code instead of text!
[ UPDATE ] This was definitely a Problem Between Chair and Keyboard. Here is the corrected version:
```perl
say qq:to/HERE/;
sub $f<functionName>($argsList) \{
die 'Function requires XML::LibXML'
unless \$XSLT_xml_support;
sub _$f<functionName>($fullArgsList)
is native(XSLT)
is symbol('$f<functionName>')
$returns
\{ \* \};
_$f<functionName>($argsList);
}
HERE
Remember that { and } are reserved characters in Perl6!