Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Re: One-liner removes whitespace-only lines from text file

by chip (Curate)
on Dec 19, 2001 at 14:39 UTC ( #133087=note: print w/replies, xml ) Need Help??


in reply to Re: One-liner removes whitespace-only lines from text file
in thread (code) One-liner removes whitespace-only lines from text file

Well, 10 out of 10 for cleverness, but abigail's trick only removes empty lines, i.e. those that match /^$/; but the original requirement was to remove lines made up of any combination of whitespace.

    -- Chip Salzenberg, Free-Floating Agent of Chaos

  • Comment on Re: Re: One-liner removes whitespace-only lines from text file

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://133087]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (1)
As of 2017-05-01 01:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (543 votes). Check out past polls.