Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re: How do I modularize a script to use plugins

by fmerges (Chaplain)
on Dec 07, 2008 at 18:57 UTC ( #728762=note: print w/replies, xml ) Need Help??

in reply to How do I modularize a script to use plugins


What I don't understand is why you want to load .pl files to have again one big chunk of code?

Have you read POE in detail, or are you just using PoCo::IRC? POE accept also object states and package states, which are for splitting the code into logical chunks, not just chunks.

I would really review the code and encapsulate as required in different modules. Then about you plugins, well as other said, take a look at PoCo::IRC itself, it has some pluggable system, maybe also POE::Component::Pluggable; Module::Pluggable once you split your code but still want to have a plugin system; and Bot::BasicBot::Pluggable which is not POE but still.


fmerges at
  • Comment on Re: How do I modularize a script to use plugins

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://728762]
[Corion]: Hi marto!
[marto]: Hey Corion, how are things?
[Corion]: Fine! It's amazing how productive I can be with a 3hour daily workload removed :)
[Corion]: My to-do emails level is at a 12-months-low of 21 , from 36 last week ;)

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (9)
As of 2018-05-24 07:24 GMT
Find Nodes?
    Voting Booth?