TZ> perl -e'$x = {}; print "%s == %s\n", $x, \%$x'
-> HASH(0xfc7d48) == HASH(0xfc7d48)
perl -e'$x = {}; print "%s == %s\n", $x, \%$x'
%s == %s
HASH(0x1271df0)HASH(0x1271df0)
did you mean printf?
TZ> I wonder if this is a bug or a feature.
hard to tell as you don't say what you think went wrong.
if it was printf you meant, it makes perfect sense. you dereferenced $x
and took a reference. it should give the same address. it isn't copying
the hash and allocating a new one like an anon hash would. these are
very different:
\%$x
{%$x}
uri