Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Re: Re: replacing /n

by tradez (Pilgrim)
on Mar 23, 2002 at 14:21 UTC ( #153782=note: print w/ replies, xml ) Need Help??


in reply to Re: Re: replacing /n
in thread replacing /n

Actually, and correct me if I am wrong on this, but I believe the \n matches \r carriage returns as well as just simple newlines in perl 5. Could be wrong, but I think I am not :).

Tradez
"Never underestimate the predicability of stupidity"
- Bullet Tooth Tony, Snatch (2001)


Comment on Re: Re: Re: replacing /n
Re: Re: Re: Re: replacing /n
by dreadpiratepeter (Priest) on Mar 23, 2002 at 14:48 UTC
    I don't believe so, only because I just had to change a s/\n//g to a s/\r?\n//g in something I was developing. Although I could be wrong. I have not done any imperical tests and I don't claim to be an expert on the subject.
    Maybe one of the real experts can chime in with a definitive answer?

    -pete
    "I am Jack's utter lack of disbelief"

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (12)
As of 2015-07-07 16:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (91 votes), past polls