Zen Seeker has asked for the wisdom of the Perl Monks concerning the following question:
There is no change if Test1 isuse strict; use warnings; # Can't locate object method "new" via package "Test1" my $test1 = new Test1; package Test; sub new { my $proto = shift; my $class = ref($proto) || shift; my $self = {}; return bless $self, $class; } package Test1; @Test1::ISA = qw(Test);
package Test1; use vars qw(@ISA); @ISA = qw(Test);
20041101 Edit by ysth: [id://] instead of <a> tag
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Revisiting strict and @ISA
by tilly (Archbishop) on Oct 29, 2004 at 21:35 UTC | |
by Zen Seeker (Initiate) on Oct 29, 2004 at 21:56 UTC | |
|
Re: Revisiting strict and @ISA
by chromatic (Archbishop) on Oct 29, 2004 at 21:35 UTC | |
|
Re: Revisiting strict and @ISA
by fglock (Vicar) on Oct 29, 2004 at 21:35 UTC | |
|
Re: Revisiting strict and @ISA
by diotalevi (Canon) on Oct 29, 2004 at 21:50 UTC | |
|
Re: Revisiting strict and @ISA
by etcshadow (Priest) on Oct 29, 2004 at 21:39 UTC | |
by diotalevi (Canon) on Oct 29, 2004 at 21:47 UTC | |
by tilly (Archbishop) on Oct 30, 2004 at 17:15 UTC |