Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Plugin-type architecture

by TedYoung (Deacon)
on Jan 10, 2006 at 17:37 UTC ( [id://522255]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @plugins = <plugins/*.pm>;
    
  2. or download this
    for (@plugins) {
       require $_;  # Basically "use"-ing the file
    ...
       s/\.pm$//;
       push @pluginInstances, $_->new; # Create a new instance
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2024-04-16 11:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found