my $food_object = AnimalFoodFactory->prepare_correct_chow(animal => 'lion');
Incidentally, there's a technique for cheap aliasing of long package names that can in a pinch do some of the work of factories. Take a look at my home node.
In reply to Re^3: OO: Factory vs. "Seed" (?) pattern
by gaal
in thread OO: Factory vs. "Seed" (?) pattern
by water
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |