Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
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 ( #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
Node Status?
node history
Node Type: note [id://371524]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2020-08-10 21:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which rocket would you take to Mars?










    Results (58 votes). Check out past polls.

    Notices?