Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Coding perl a plugin system?

by Dogma (Pilgrim)
on Dec 14, 2002 at 23:23 UTC ( [id://219910]=note: print w/replies, xml ) Need Help??


in reply to Coding perl a plugin system?

I'm not advocating this as the best method but since nobody else has brought it up I thought I should. You can re-open name spaces with the 'package' keyword. The best example of this (that I can think of) are the plugins for Mail::Audit.

from Mail/Audit/KillDups.pm

package Mail::Audit::KillDups; use Mail::Audit; use vars qw(@VERSION $dupfile $cache_bytes); $VERSION = '1.9'; $dupfile = ".msgid-cache"; $cache_bytes = 10000; 1; package Mail::Audit; use strict; use Fcntl; sub killdups { . . .

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://219910]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (6)
As of 2024-04-23 17:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found