Change this:
print FLE $_, $/ for @file;
To this:
for ( @file ) { print FLE "$_\n" if /\S/; # must have at least one non-whitespace }
Cheers,
Ovid
Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.
In reply to Re: Deleting lines from an array
by Ovid
in thread Code explanation needed (was: What does this mean)
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |