http://www.perlmonks.org?node_id=371448


in reply to The most annoying common way to get a string literal in Perl is...

Definitely here-documents and especially __END__. It screws up the whole indenting, and makes me loose my oversight and position in the code. They'd be great if the indenting problem could be fixed somehow, though...
  • Comment on Re: The most annoying common way to get a string literal in Perl is...

Replies are listed 'Best First'.
Re^2: The most annoying common way to get a string literal in Perl is...
by Anonymous Monk on Jul 02, 2004 at 22:10 UTC
    It can. Did you try:
    if($anything){ print <<" Ende" # =~s/ \n/\n/g #could be appended Text Ende }
      Sorry, sleep deprivation. The regex must be m"    (.*?)$"msg;.
        Hey, thanks, I didn't know you could do such a direct regex on a here-document. Always something new to learn...