in reply to Need some data structures cooked
You could simplify your data structures by using separate hashes for per-iteration and accumulated data. Then you would write
Oh, and$vips{$2}++; ... push @{$vipstack{$k}}, $vips{$k}; shift @{$vipstack{$k}} if @{$vipstack{$k}} > 50; ... my $temp = $vipstack{$k};
#5. You aren't using strict.
|
|---|