A sample of creating a dangling (unfreeable) reference and retrieving a stringified reference. Don't try this at home.
use 5.008001; use B; $z = [0..9]; use Devel::Peek "SvREFCNT_inc"; $foo{0+$z} = 1; $z = \\@$z; SvREFCNT_inc($$z); undef $z; $key = each %foo; $obj = bless \$key, "B::AV"; print @{$obj->object_2svref};

Replies are listed 'Best First'.
Re: Look, Ma! No hands!
by diotalevi (Canon) on Apr 08, 2005 at 05:38 UTC