in reply to create hash with map
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;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: create hash with map
by ikegami (Patriarch) on Sep 24, 2007 at 15:39 UTC | |
by mwah (Hermit) on Sep 24, 2007 at 15:49 UTC | |
by ikegami (Patriarch) on Sep 24, 2007 at 15:55 UTC | |
by mwah (Hermit) on Sep 24, 2007 at 16:10 UTC | |
by ikegami (Patriarch) on Sep 24, 2007 at 16:19 UTC | |
|