in reply to Re: Re^3: Deleting a package
in thread Deleting a package

What do you think a package is? It's an object in the interpreter which has a name, and a collection of symbols which it owns. Some of those symbols refer to subs.

Surprisingly enough I do know what a package is :-) I don't really understand the point you're trying to make.

The OPs problem is what packages don't give you - simple mechanisms for creation and destruction. I think that sticking the Perl code in a hash or whatever rather than a package will result in simpler code (e.g. the way Template Toolkit uses Template::Document objects to represent compiled templates.)