in reply to Cannot seem to remove empty/blank lines
marcosuse strict; open(LOG,"+</etc/spamdomains.txt") || die "Can't open spam file\n"; my @lines = grep {!/^$/} <FILE>; close(LOG); print @lines;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Cannot seem to remove empty/blank lines
by Anonymous Monk on Jan 26, 2005 at 16:41 UTC |