"Jonathan E. Paton" <[EMAIL PROTECTED]> writes: > %hash('james' => ['1', '2'], > 'kelty' => '3', > 'biran' => '4'); > > When accessing the keys you check for an array ref, if so > you have multiple values. More memory and you can just > create each value as an array.
And if you want uniformity of your values, you may want to have all the values be array references. It makes handling the values easier. %hash('james' => ['1', '2'], 'kelty' => ['3'], 'biran' => ['4'] ); foreach $fn (keys %hash) { printf "key: '%s'\n\tvalue(s): [%s]\n", $fn, join ", " => @{$hash{$fn}}; } -- Michael R. Wolf All mammals learn by playing! [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]