in reply to object contstruction

try
my $self = ("Module::$t")->new();

Replies are listed 'Best First'.
Re^2: object contstruction
by kappa (Chaplain) on Dec 14, 2004 at 12:28 UTC
    Or just
    my $self = "Module::$t"->new();
    as ysth mentions.

    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();
    --kap