in reply to Re: How to create hash out of an array elements?
in thread How to create hash out of an array elements?
Thanks. This seems to be working. Now I am not able to print the values. The following code works:
But when I specify the name, it doesnt work. And this code is of no use if it can't print the values when the function name is specified. Please help.print "The size for $symbolsizes[0] is $sizes{$symbolsizes[0]}";
print "The size for function is $sizes{function}";
Assume function to be an element of the array symbolsizes.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: How to create hash out of an array elements?
by ikegami (Patriarch) on Nov 17, 2011 at 10:02 UTC | |
by aaron_baugher (Curate) on Nov 17, 2011 at 12:24 UTC |
In Section
Seekers of Perl Wisdom