in reply to Re^3: Comparing masses in two txt files
in thread Comparing masses in two txt files
However, that map chomp, <$in1>; will result in a load of '1's being emitted to the grep denoting the success of the chomps. The whole line should perhaps be
my @data1 = grep length, map {chomp; $_} <$in1>;
Obviously, your original line was fine and I'm sorry my buffle-headed senior moment got us into this :-/
Cheers,
JohnGG
|
|---|