You get to see a piece of perl code which (condensed) reads:
my $v; # ... $v = $hash{$foo}->{$bar}; # ... some lines later the same location # has to be retrieved to check for changes # to the multilevel hash $ref = [ $foo, $bar ]; my $nv = $hash{$ref}; if ($v eq $nv) { ...
and you are told that this just works. Can it? does it? how so?
In reply to reference as key to hash by shmem
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |