gdig321 has asked for the wisdom of the Perl Monks concerning the following question:
%goodhash = ( red => '1', blue => '2', green => '3', ); @colors = qw(red blue green); print $fh join("|", @hash{@colors}), "\n"
$evilhash{$id} = { red => '1', blue => '2', green => '3', }; @colors = qw(red blue green);
print $fh join("|", @evilhash{$id}{@colors}), "\n" or this @{$evilhash{$id}}{@colors}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: print hash of hashes as lists
by meonkeys (Chaplain) on May 29, 2001 at 05:27 UTC | |
by perigeeV (Hermit) on May 29, 2001 at 06:03 UTC | |
by meonkeys (Chaplain) on May 31, 2001 at 03:50 UTC | |
|
Re: print hash of hashes as lists
by mr.nick (Chaplain) on May 29, 2001 at 03:45 UTC |