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

Re: Removing blank/empty lines

by Anonymous Monk
on Dec 11, 2012 at 14:28 UTC ( #1008310=note: print w/replies, xml ) Need Help??


in reply to Removing blank/empty lines

Use a regex like /$\s*^/ to anchor the pattern at both ends and search for zero-or-more occurrences of a space character between.

Replies are listed 'Best First'.
Re^2: Removing blank/empty lines
by Athanasius (Canon) on Dec 12, 2012 at 06:08 UTC

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (11)
As of 2016-09-29 17:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (555 votes). Check out past polls.