in reply to check if an element exists in array

If the Hash of Arrays is too high tech for you, you could also simply concatenate the numbers in a comma seperated string, so that Jims entry would be "12,57".

The if statement in mscharrers code would then look like:

if (!exists $people{$name}) { $people{$name} = $value; # store array with one value } else { $people{$name} .= ",$value"; # push 2nd,3rd,.. value on array
You can just print the string stored in the hash or get at the numbers with my @numbers= split /,/,$value