A factory is a class or object that creates objects. It's a design pattern. Try googling for "object factory design pattern perl". The first several links look good.
The basic concept is that you ask the factory for an object given a set of parameters and it returns back an object of the appropriate class(es), if possible.
------
We are the carpenters and bricklayers of the Information Age.
Then there are Damian modules.... *sigh* ... that's not about being less-lazy -- that's about being on some really good drugs -- you know, there is no spoon. - flyingmoose
| [reply] |