in reply to The costs of packages
my %types; foreach my $type (map { "type$_" } qw(A B C D E)) { $types{$type} = $factory->new(type => $type, ...); }
Keep
It
Simple,
Stupid
Second-best piece of advice my Dad ever gave me.
------
We are the carpenters and bricklayers of the Information Age.
The idea is a little like C++ templates, except not quite so brain-meltingly complicated. -- TheDamian, Exegesis 6
Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: The costs of packages
by Anonymous Monk on Sep 17, 2003 at 04:30 UTC | |
by dragonchild (Archbishop) on Sep 17, 2003 at 13:18 UTC |