in reply to Here docs throwing syntax error - can't find string terminator

Get rid of the whitespace before your end marker.

ie

my $stuff = join(":", <<END =~ /(.+)/g); hi there this\tis\ta\ttest of the best! END

Works fine

  • Comment on Re: Here docs throwing syntax error - can't find string terminator
  • Download Code