|
|
| Do you know where your variables are? | |
| PerlMonks |
Re: DWIM: autoloading classesby liz (Monsignor) |
| on Sep 17, 2003 at 05:14 UTC ( [id://292084]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
Paranoid as I am, I am wondering whether the automatic loading of Foo::* modules isn't opening some serious security holes, because you can never know whether someone hasn't put a "Foo::Takeovereverything" module somewhere in @INC (especially with "." usually being part of @INC). Of course, this could be considered a feature as well.
Personally, I like the following idiom better for object oriented modules, as it makes it easier to use a lot of modules _and_ still keep a better overview: which would be equivalent to:
Foo::import would look something like this:
With apologies to those for whom this would be bleedingly obvious. Liz
In Section
Meditations
|
|
||||||||||||||||||||||||||||||||