This works...
#!/usr/bin/perl use strict; use warnings; print <<"TEXT"; This is a @{[ PrintHereDoc() ]} here-doc. TEXT print "END\n"; # subroutine sub PrintHereDoc { return "print statement inside a "; }
In reply to Re: Print statements inside a function call in a here-doc don't work
by 2teez
in thread Print statements inside a function call in a here-doc don't work
by MrSnrub
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |