in reply to Re^2: problem with deleting a row
in thread problem with deleting a row

This:

while (<FILE>) { @array = <FILE>;
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:
use strict; use warnings;
would have picked up these errors.