in reply to object contstruction
our @ISA = qw ( Module::Test );
I'm trying to understand what you are attempting to do here. You are wanting to call the constructor of some other class in some other Module:xxx namespace, and you are then blessing this into your passed classname.my $self = Module::$t->new;
This is syntactically invalid, and also breaks strict 'refs', or rather would bresk it if you specified
my $self = ${"Module::$t"}->new;
--
I'm Not Just Another Perl Hacker
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: object contstruction
by ysth (Canon) on Dec 14, 2004 at 10:36 UTC |