There's also 'How do I clear a package?' in perlfaq7, and the handy Symbol::delete_package.
I have actually come across a vaguely sane reason for doing this. When I was writing a test script for a package with persistant class data it was easier to clear the package out and reload the class, rather than run multiple test scripts.
In reply to Re: Erasing Symbol Tables
by adrianh
in thread Erasing Symbol Tables
by shotgunefx
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |