in reply to Erasing Symbol Tables

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.

Replies are listed 'Best First'.
Re: Re: Erasing Symbol Tables
by shotgunefx (Parson) on Dec 04, 2002 at 21:47 UTC
    Agreed. It's one of the few reasons that makes sense.

    -Lee

    "To be civilized is to deny one's nature."