in reply to Re: Comparing masses in two txt files
in thread Comparing masses in two txt files
my @data1 = grep {chomp; length} <$in1>;
I would have though you want the chomped data so just pass out $_ instead.
my @data1 = grep {chomp; $_} <$in1>;
Maybe I'm missing something obvious.
Cheers,
JohnGG
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Comparing masses in two txt files
by GrandFather (Saint) on Nov 05, 2008 at 21:33 UTC | |
by johngg (Canon) on Nov 05, 2008 at 23:32 UTC |