in reply to Re^2: De-Overload reference?
in thread De-Overload reference?

The code you posted here (without the hash-ref-ref) returns '1', and the code I posted returns '2'.

In other words, the problem here is that the method 'foo' is accessing the output of the overridden ref operator instead of the true value stored within the object. My example using a hash-ref-ref returns the true value from method foo.