my %reverse; push @{ $reverse{ $sandwichHash{$_} } }, $_ for keys %sandwichHash; print "@{ $reverse{'burger'} }\n"; print "@{ $reverse{'panini'} }\n"; print "@{ $reverse{'hoagie'} }\n";
In reply to Re: One to many hash question
by dragonchild
in thread One to many hash question
by BengalsRock
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |