Just another Perl shrine | |
PerlMonks |
Re: removing blank lines from filesby gumby (Scribe) |
on Jun 20, 2002 at 12:48 UTC ( [id://175990]=note: print w/replies, xml ) | Need Help?? |
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.
In Section
Seekers of Perl Wisdom
|
|