Peter Rabbitson am Sonntag, 18. September 2005 16.37: [...] Hi
> This raises another question though - I thought in order to have a class > I *must* declare a package. However you get away by simply initiating a > variable. Does autovivification work for packages just like it does for > hash keys? Not in the same sence; autovivication creates the required structure (e.g. intermediate levels in nested hashes), whilst a package is defined from the point you use its namespace the first time ($Mypack::Variable='hi'). package Mypack; is not necessary to create the package name space, it indicates the beginning of the lexical scope of that package namespace (nothing prevents you from placing the package keyword at several places, in several files). Therefore its possible to mess around in external package namespaces without editing the "package module" (but I wouldn't do that unless very necessary). joe -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>