Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: removing blank lines from files

by gumby (Scribe)
on Jun 20, 2002 at 12:48 UTC ( [id://175990]=note: print w/replies, xml ) Need Help??


in reply to removing blank lines from files

chomp will remove any trailing string that corresponds to the value of $/ (see perlfunc). So you want something like s/^\s*$//g. Some code would be helpful here by the way.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2024-04-25 04:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found