Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

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 ( [id://371524]=note: print w/replies, xml ) Need Help??


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

It can. Did you try:
if($anything){ print <<" Ende" # =~s/ \n/\n/g #could be appended Text Ende }
  • Comment on Re^2: The most annoying common way to get a string literal in Perl is...
  • Download Code

Replies are listed 'Best First'.
Thinko!
by Anonymous Monk on Jul 03, 2004 at 07:57 UTC
    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://371524]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2024-11-06 18:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    chatterbot is...






    Results (32 votes). Check out past polls.