You cannot indent the terminator.
#WRONG: print <<FOO FOO #RIGHT: print <<BAR BAR
For extra credit, figure out how to use a regular expression to allow for arbitrarily indented terminators.
In reply to Re: use of string terminator within a subroutine
by idsfa
in thread use of string terminator within a subroutine
by o2bwise
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |