in reply to Dereferencing Hash of Array

You just need to use join or something similiar.

foreach my $group (keys %no_priv_matches) { print "New interconnects for $group are:\n"; foreach (@{$no_priv_matches{$group}}) { print "\t".join(",",@{$no_priv_matches{$group}})."\n"; } }

Replies are listed 'Best First'.
Re: Re: Dereferencing Hash of Array
by Tuna (Friar) on Feb 20, 2001 at 20:45 UTC
    Thanks for the reply, but that returns the same result as the code that I posted.
      Sorry, my mistake, I didn't see the double arrays. Something like this will work:
      foreach (@{$no_priv_matches{$group}}) { for my $x (@$_) { print "$x "; } }