in reply to Deleting lines from an array
in thread Code explanation needed (was: What does this mean)
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.
|
|---|