|
|
| No such thing as a small change | |
| PerlMonks |
Re: Re: One-liner removes whitespace-only lines from text fileby chip (Curate) |
| on Dec 19, 2001 at 14:39 UTC ( #133087=note: print w/ replies, xml ) | Need Help?? |
|
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
In Section
Snippets Section
|
|
||||||||||||||||||||