| [reply] |
| [reply] |
Yeah, there are ways, but why do you want to? Anywhat, (way, who, and how are already taken), try to make them into modules and then use them. Google and Super Search may help.
Update: Just looked at the title of the OP -- added some links.
I'm so adjective, I verb nouns! chomp; # nom nom nom
| [reply] [d/l] |
Hi,
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.
Regards,
fmerges at irc.freenode.net
| [reply] |
Thank you all for your help, I believe "do" is exactly what I was looking for. It allows me to easily break down my sub functions into a logical plugin, then use a loop with do, to add the plugins from the plugin folder that I want to use back into my script. | [reply] |