Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: s/PATTERN/func()/em leaks /m into func()

by ashokpj (Hermit)
on Apr 21, 2006 at 11:56 UTC ( #544862=note: print w/replies, xml ) Need Help??


in reply to s/PATTERN/func()/em leaks /m into func()

Problem in \n in search and replace.

'\n' is a special character so use \\n <code> $s =~ s/^\\n+//; <\code>

  • Comment on Re: s/PATTERN/func()/em leaks /m into func()

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (7)
As of 2020-06-05 19:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you really want to know if there is extraterrestrial life?



    Results (40 votes). Check out past polls.

    Notices?