Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Recommendations for adding plugin/addon capability to a program

by boftx (Deacon)
on Dec 30, 2013 at 19:48 UTC ( #1068769=note: print w/ replies, xml ) Need Help??


in reply to Recommendations for adding plugin/addon capability to a program

I have used both "roll-my-own" and Module::Pluggable with success. It really depends on what I was trying to do.

That said, I would probably be more inclined to go with M::P now since it offers more flexibility overall, even if not needed at the time. The use-cases I had involved finding what plugins were available so I could process a given input format with a given plugin, converting to an internal virtual format if it existed or bailing out otherwise.

Some of what I was doing could possibly be done using API Roles in Moose, instead.

It helps to remember that the primary goal is to drain the swamp even when you are hip-deep in alligators.


Comment on Re: Recommendations for adding plugin/addon capability to a program

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (11)
As of 2014-12-23 04:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (135 votes), past polls