in reply to How to create hash out of an array elements?
The map callback never gets called since you didn't pass any list to transform, so map returns nothing.
You could create the desired list of two elements as follows:
my %sizes = ( $symbolsizes => $symbolsizes );
But really, all you need is the following:
my %sizes = @symbolsizes;
PS — The language is called "Perl", not "PERL".
|Replies are listed 'Best First'.|
Re^2: How to create hash out of an array elements?
by jojojo (Initiate) on Nov 17, 2011 at 09:19 UTC
by ikegami (Patriarch) on Nov 17, 2011 at 10:02 UTC
by aaron_baugher (Curate) on Nov 17, 2011 at 12:24 UTC