fundflow has asked for the wisdom of the Perl Monks concerning the following question:
@a=('a', 'b', 'a', 'a'); foreach ( @a ) { $c{$_}++; } foreach ( keys %c ) { print "$_ occurs $c{$_}\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Counting occurances
by ZZamboni (Curate) on Jul 13, 2000 at 19:10 UTC | |
|
RE: Counting occurances
by dempa (Friar) on Jul 13, 2000 at 17:12 UTC | |
by merlyn (Sage) on Jul 13, 2000 at 17:50 UTC | |
by dempa (Friar) on Jul 13, 2000 at 19:23 UTC | |
|
Re: Counting occurances
by le (Friar) on Jul 13, 2000 at 17:04 UTC | |
|
Re: Counting occurances
by LeGo (Chaplain) on Jul 20, 2001 at 04:20 UTC |