in reply to Re^2: hash reference to itself
in thread hash reference to itself

Note that this approach will leak memory unless you do the following when you're done with the hash:
%hash = ();

Replies are listed 'Best First'.
Re^4: hash reference to itself
by ExReg (Priest) on Aug 02, 2016 at 18:14 UTC

    Good to know. Thanks!