Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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 chanting in the Monastery: (7)
As of 2019-11-13 19:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Strict and warnings: which comes first?



    Results (74 votes). Check out past polls.

    Notices?