in reply to help with counters in perl
foreach my $rec (@records) { chomp($rec); ($game, $commercial) = split(/,/, $rec); print "\$game: >$game<\n\$commercial: >$commercial<\n"; # <<<< + debug $game_count{$game} = $game_count{$game} + 1; $comm_count[$commercial] = $comm_count[$commercial] + 1; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: help with counters in perl
by Fletch (Bishop) on May 17, 2005 at 00:09 UTC |