Do you know where your variables are? | |
PerlMonks |
Re: How to create hash out of an array elements?by ikegami (Patriarch) |
on Nov 17, 2011 at 09:07 UTC ( [id://938551]=note: print w/replies, xml ) | Need Help?? |
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:
But really, all you need is the following:
PS — The language is called "Perl", not "PERL".
In Section
Seekers of Perl Wisdom
|
|