package Church; sub factory_create { my ( $class, %p ) = @_; my $new_class = ref($class) || $class . "::" . $p{firm}; eval "require $new_class" or die $@; return $new_class->new(%p); }
In reply to Re^3: Thorny design problem
by borisz
in thread Thorny design problem
by tlm
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |