in reply to Re^2: problem with deleting a row
in thread problem with deleting a row
This:
is just wrong. Either you read the file line by line with a while loop, or you "slurp" it into an array, but don't do both. The you are constructing a @a array and print $a, a scalar variable. The following pragmas:while (<FILE>) { @array = <FILE>;
would have picked up these errors.use strict; use warnings;
|
|---|