in reply to remove blank lines with regex
Consider this:
# Open both IN_FILE and OUT_FILE here! while(<IN_FILE>) { chomp; next unless length; print OUT_FILE "$_\n"; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: remove blank lines with regex
by Joost (Canon) on May 21, 2002 at 13:35 UTC | |
Re: Re: remove blank lines with regex
by amarceluk (Beadle) on May 21, 2002 at 13:41 UTC |