konnjuta has asked for the wisdom of the Perl Monks concerning the following question:
Suppose I have the following input:
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 <>;
Back to
Seekers of Perl Wisdom