as ysth mentions.my $self = "Module::$t"->new();
Note to original poster: the quotes are there to help perl understand where exactly the package name is. It is sometimes is not as obvious as here:
my $t = 'Module::Test'; my $self = $t->new();
In reply to Re^2: object contstruction
by kappa
in thread object contstruction
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |