in reply to Memory Management...
If there is a persistent reference, your =undef's will be The Wrong Thing To Do (TM).
The only case where you would need to do anything like that is where there is a (direct or indirect) circular reference, e.g. my $a; $a = \$a
|
|---|