Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
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 ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://371448]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2024-04-25 17:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found