package a; sub DESTROY{print "hash destroyed\n"}; $b=bless {a=> 1}, "a"; $c=\$b->{a}; $b=undef; print "still holding a reference to $$c\n";
In reply to Re: Query on refcounting with container objects
by fergal
in thread Query on refcounting with container objects
by calin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |