in reply to Printing a hash of arrays ??
Yeah. Two things.
You loop through @{$reference} assigning the values to $temp but you never use it. Instead you print $key and $reference.while ( my ($key, $reference) = each %key_hash){ foreach my $temp (@{$reference}){ print "$key, $reference\n"; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Printing a hash of arrays ??
by Anonymous Monk on Mar 26, 2003 at 22:02 UTC |