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

Re^3: Redefining chomp()

by Roy Johnson (Monsignor)
on Mar 24, 2004 at 18:48 UTC ( [id://339509]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Redefining chomp()
in thread Redefining chomp()

I have trouble understanding how this will remove multiple newlines as you say. Am I missing something?
If the trailing /g on an anchored s///g actually had some effect, maybe it would strip off all trailing newlines. But as it is, it doesn't.

The PerlMonk tr/// Advocate

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (5)
As of 2024-03-29 14:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found