in reply to Required guidance to simplify this program
use strict; use warnings; use Data::Dumper; my %count; my @array = qw(John Sue Larry Mary John Mary Larry John Joe Lisa John +Mary); grep {++$count{$_}} @array; print Dumper \%count;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Required guidance to simplify this program
by tobyink (Canon) on Jun 04, 2013 at 06:35 UTC | |
|
Re^2: Required guidance to simplify this program
by Anonymous Monk on Jun 04, 2013 at 06:12 UTC |