in reply to Printing a hash of arrays ??

Yeah. Two things.

  1. You still haven't signed up for an account. ;-)
  2. while ( my ($key, $reference) = each %key_hash){ foreach my $temp (@{$reference}){ print "$key, $reference\n"; } }
    You loop through @{$reference} assigning the values to $temp but you never use it. Instead you print $key and $reference.

Replies are listed 'Best First'.
Re: Re: Printing a hash of arrays ??
by Anonymous Monk on Mar 26, 2003 at 22:02 UTC
    lol....no I haven't but I will. This is a great site, and everyone has been so helpful.