http://qs321.pair.com?node_id=938557


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:

print "The size for $symbolsizes[0] is $sizes{$symbolsizes[0]}";
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 function is $sizes{function}";

Assume function to be an element of the array symbolsizes.