in reply to Re^2: hash of arrays
in thread hash of arrays
what output do you get if you change your print loop to
Does each line get printed correctly, or are the lines garbled as in your old output?foreach my $key ( keys %hash ) { #print "$key: @{ $hash{$key} }\n" print "$key: \n"; foreach (@{$hash{$key}}) { print $_ , "\n"; } }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: hash of arrays
by Anonymous Monk on Oct 26, 2011 at 09:45 UTC | |
by spazm (Monk) on Oct 26, 2011 at 09:55 UTC | |
by Anonymous Monk on Oct 26, 2011 at 10:01 UTC |
In Section
Seekers of Perl Wisdom