in reply to Deleting lines from an array
in thread Code explanation needed (was: What does this mean)
You could change your print to:
unless you have undeleted, undefined elements in @file which you want to print. In that case, you could do something like:defined ($_) && print FLE $_, $/ for @file;
foreach (0 .. $#file) { print FLE $file [$_], $/ if exists $file [$_] }
Abigail
|
---|