in reply to Registering Subclass Modules via Plugin

You're looking for a factory. There are a number of solutions out there - Module::Plugin is a good one. Catalyst does something similar. Alternately, you can do what Excel::Template::Factory does.

My criteria for good software:
  1. Does it work?
  2. Can someone else come in, make a change, and be reasonably certain no bugs were introduced?
  • Comment on Re: Registering Subclass Modules via Plugin

Replies are listed 'Best First'.
Re^2: Registering Subclass Modules via Plugin
by 2xlp (Sexton) on Nov 14, 2007 at 19:08 UTC
    factory pattern indeed - i'm actually porting a python module i wrote into perl

    thanks! I'll check out those packages for pointers- question though, do you recommend Module::PluginFinder or Module::Pluggable ?
      I don't have a recommendation. I'd use whatever Catalyst and DBIx::Class use as the devs for those distros are pretty much on the ball.

      My criteria for good software:
      1. Does it work?
      2. Can someone else come in, make a change, and be reasonably certain no bugs were introduced?