in reply to Re: Given ref to hash value, retrieve the key
in thread Given ref to hash value, retrieve the key
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.
|
|---|