more useful options | |
PerlMonks |
Re^3: Altering Package Subs and Running In To Problemsby Aighearach (Initiate) |
on Nov 11, 2004 at 11:47 UTC ( [id://407000]=note: print w/replies, xml ) | Need Help?? |
Ahhhh, this code explains it. You're not wanting to step on toes, you're wanting your users to step on YOUR toes!
Another thing to consider, is using the Safe module (with everything turned on perhaps) to load the plugins into a certain namespace. And then use that namespace for the parts of your code you want the plugins to overwrite. That way, you can even still publish an interface, but each plugin can only see the plugin-accessible part of the namespace. And then the plugin doesn't have to mess with PluginNamespace, that happens automatically. You can even pass things in (which is as if the plugin got them from you with export. Like a reverse export) and other crazy stuff. I use Safe alot, but rarely for what it was intended for... -- Snazzy tagline here
In Section
Seekers of Perl Wisdom
|
|