my $class = 'My::Package::Class'; my $object = $class->new( ... );
Note that using the indirect object syntax (as you do) can cause problems.
In reply to Re: Perl OO: switch package context.
by Joost
in thread Perl OO: switch package context.
by sorhed
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |