- or download this
%goodhash = (
red => '1',
...
@colors = qw(red blue green);
print $fh join("|", @hash{@colors}), "\n"
- or download this
$evilhash{$id} = {
red => '1',
...
};
@colors = qw(red blue green);
- or download this
print $fh join("|", @evilhash{$id}{@colors}), "\n"
or this @{$evilhash{$id}}{@colors}