in reply to performance issues
my @array; my $match = 'some_criteria'; while (<FH>) { chomp; # thanks gwadej for reminding me my ($x,$y) = split /\t/, $_; if ( $x eq $match ){ push @array, $y; } } print "@array\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: performance issues
by gwadej (Chaplain) on Jan 27, 2009 at 19:00 UTC | |
|
Re^2: performance issues
by perlcat (Novice) on Jan 27, 2009 at 19:05 UTC |