in reply to Re^2: Extracting records with unique ID
in thread Extracting records with unique ID
and read perllol, perlreftut, perlref, perldsc... I would prefer you read them in that order, but do as you please!!!my %h; while( <> ) { my ($k, $v) = process $_; push @{$h{$k}}, $v } for my $k ( keys %h ) { #traverse all keys for my $v ( @{$h{$K}} ) { #traverse all values for that key do_your_stuff $k, $v; } }
|
|---|