Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
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 having an uproarious good time at the Monastery: (5)
As of 2020-02-29 00:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What numbers are you going to focus on primarily in 2020?










    Results (127 votes). Check out past polls.

    Notices?