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; }
In reply to Re: help with counters in perl
by TheStudent
in thread help with counters in perl
by student in perl/cgi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |