To create a hash that will allow me to determine if a store has a product I can use:STORE PRODUCT_ID ==================== Sydney 12 Sydney 14 Canberra 12 Canberra 18
How can I achieve a similar result using map?my %hash; $hash{(split)[0]}{(split)[1]} = 1 foreach <>;
In reply to Possible for Map to create Hash of Hash? by konnjuta
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |