> foreach $key (keys %hash) {
> print $key\n;
> print $hash{$key}."\n";
> }
print @{ $hash{$key} }, "\n";
this will print the contents of the array separated by a space character.
you can loop over the @{ $hash{$key} } array to print out individual
elements:
for (@{ $hash{$key} })
{
print $_, "\n";
}
Luke
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
- print the array values in a hash Jennifer Pan
- Luke Bakken
