#!/usr/bin/perl -w use strict; my %hash; my @info = qw( Katie Bob Aimee Carol John Carol ); foreach ( @info ) { $hash{$_}++; } print "\n"; foreach ( keys %hash ) { print "$_ -> ", $hash{$_}, "\n"; }
In reply to Re: Elements in array
by DigitalKitty
in thread Elements in array
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |