atcroft has asked for the wisdom of the Perl Monks concerning the following question:
Earlier in the Chatterbox, I asked the following:
<atcroft> Anyone know a good module or tutorial on writing code to have the ability to add functionality using plugins/addons/modules?
There were a few replies mentioning Module::Pluggable, or to look at double dispatch and rolling my own method. So, what are your (insight|opinions|thoughts) on it, or do you have (links|references|specific modules) you can point me to?
(My thanks to LanX, MidLifeXis, and Voronich, for suggesting I post this for response from the larger community.)
Update: 2013-12-30
There have been several comments asking for more detail on what I had in mind. I had wanted to get general feedback, but the (personal) project I have in mind that would use this is a program looking at files dumped into a subdirectory and initially recording a small amount of information, but I wanted a more modular way of adding in additional capabilities for specific file types (for example, have the initial program working, then add in a module for retrieve EXIF information from JPGs in the directory or to process MBOX files at a later date, without having to modify the initial (possibly running) program).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Recommendations for adding plugin/addon capability to a program
by boftx (Deacon) on Dec 30, 2013 at 19:48 UTC | |
|
Re: Recommendations for adding plugin/addon capability to a program
by LanX (Saint) on Dec 30, 2013 at 19:26 UTC | |
|
Re: Recommendations for adding plugin/addon capability to a program
by tobyink (Canon) on Dec 31, 2013 at 07:54 UTC | |
|
Re: Recommendations for adding plugin/addon capability to a program
by Laurent_R (Canon) on Dec 30, 2013 at 21:29 UTC | |
|
Re: Recommendations for adding plugin/addon capability to a program
by Anonymous Monk on Dec 31, 2013 at 07:49 UTC | |
|
Re: Recommendations for adding plugin/addon capability to a program
by boftx (Deacon) on Dec 31, 2013 at 00:09 UTC | |
|
Re: Recommendations for adding plugin/addon capability to a program
by locked_user sundialsvc4 (Abbot) on Dec 31, 2013 at 00:05 UTC | |
|
Re: Recommendations for adding plugin/addon capability to a program
by Laurent_R (Canon) on Dec 30, 2013 at 20:01 UTC |