You could pass in \%hash, $key, and deref as approprate. Or, you could do what somebody already suggested and tell us what the problem is. (Oh, and note that
will print 42.my(%hash, $ref); $ref=\$hash{key}; $$ref=42; print $hash{key};
In reply to Re: Given ref to hash value, retrieve the key
by theorbtwo
in thread Given ref to hash value, retrieve the key
by gazpacho
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |