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).
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |