Regards# |hash key| [hash val: array(comma sep values)] %cp_samp = map{ (split ':')[0], [split ',', (split ':')[1] ] }@ex_ar +ray; # display result with: print map "$_ => array [ @{ $cp_samp{$_} } ]\n", keys %cp_samp;
In reply to Re: create hash with map
by mwah
in thread create hash with map
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |