in reply to Here docs throwing syntax error - can't find string terminator
my $stuff = join(":", <<END =~ /(.+)/g); hi there this\tis\ta\ttest of the best! ENDAm I just missing something obvious here?
Yep, 'END' ne ' END'. But incidentally IIRC Perl 6 is supposed to do something smart in those cases...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Here docs throwing syntax error - can't find string terminator
by Popcorn Dave (Abbot) on May 29, 2007 at 23:06 UTC |