in reply to 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.

Have you seen the .sig someone has around here, which is something like "he started out writing a {foo} and ended up inventing a new object model"?

--
[ e d @ h a l l e y . c c ]

Replies are listed 'Best First'.
Re^5: Deleting a package
by adrianh (Chancellor) on Apr 27, 2004 at 15:53 UTC
    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.)