I'm writing this application that's going to run as a CGI script on a FreeBSD system. I want to make it as expandable as possible ... Then it hit me, a plugin based perl application. It only has features of the plugins that I put into a select directory.
My question is quite simple. What are your all's thoughts on implementing something like this? I have a general basis on how to do this, but I thought I'd get some feedback from the Perl community and see how they would approach this.
I've thought of using a public variable (via export or use vars) that will store actions mapped to the functions that take care of them.
And A public object was passed my way. Now, I'm not tooo... sure about the implementation on this. Inheritance is not as clear in Perl as it is in C++. Or an I totally thinking the wrong direction with this idea?