advanced code snippet search
yoblob on 02/17/11
perl hashmap
02/17/11 10:42am
create hashmap iterate through and print values
%testHashpMap = (); $testHashpMap {"delhi"} = "india";$testHashpMap {"london"} = "uk";$testHashpMap {"new york"} = "us";$testHashpMap {"tokyo"} = "japan"; foreach $city ( keys %testHashpMap ){ print $city; print "\n";}
Report this snippet Tweet
Comment:
You need to login to post a comment.