in reply to Re^2: unreachable memory with a non-zero reference count
in thread unreachable memory with a non-zero reference count

But that way you lose the old value. I'm not sure that that's really what you want:

#!perl -w use strict; use Data::Dumper; my $foo = 'bar'; $foo = \$foo; print $foo; print $$foo; print Dumper $foo; __END__ REF(0x12da554) REF(0x12da554) $VAR1 = \$VAR1;

Replies are listed 'Best First'.
Re^4: unreachable memory with a non-zero reference count
by Pickwick (Beadle) on Jun 21, 2010 at 13:45 UTC
    But that way you lose the old value. I'm not sure that that's really what you want:
    Of course it isn't. :-) I thought I would be actually using code like in my example and therefore I thought it would be working, but this doesn't seem to be the case. I can't find it anymore, seems I've rewritten it before running into the problem shown and couldnt' remeber anymore. Seems I now have to reasons for don't using things like that, thanks. :-)