my $val = 1; my %hash = ( \$val => 2 ); foreach my $ref (keys %hash) { print $$ref, "\n"; }
Does not yield the value 1, instead you get undef.
In reply to Re: Re: Given ref to hash value, retrieve the key
by linux454
in thread Given ref to hash value, retrieve the key
by gazpacho
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |