in reply to Re: converting an array to an hash
in thread converting an array to an hash
Indeed I could use just the following line:
%hash = map { get_a_key_for($_) => $_ } @array;
How can I build that?%hash = (1 => value's list, 2 => values's list, n => value's list)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: converting an array to an hash
by BrowserUk (Patriarch) on Dec 22, 2014 at 17:46 UTC | |
by savio (Initiate) on Dec 22, 2014 at 17:54 UTC | |
by BrowserUk (Patriarch) on Dec 22, 2014 at 18:49 UTC | |
by karlgoethebier (Abbot) on Dec 22, 2014 at 20:26 UTC |