Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

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

by december (Pilgrim)
on Jul 02, 2004 at 17:07 UTC ( #371448=note: print w/replies, xml ) Need Help??


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...

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://371448]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (3)
As of 2019-12-08 05:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?