in reply to Comparing Two arrays to find differences

BTW,

while (<F>) { @lines=(<F>); }

is better simply written as

@lines = <F>;

(this way, you also wouldn't skip the first line...)