adamk has asked for the wisdom of the Perl Monks concerning the following question:
The particular problem I have with this situation is that, if your class doesn't have an @ISA, lots of things ( overload and Carp::croak for example), accidentally set @SomeClass::ISA to (), when doing things like thisLoading DB routines from perl5db.pl version 1.19 Editor support available. Enter h or `h h' for help, or `man perldebug' for more help. main::(-e:1): 1 DB<1> $Foo::VERSION = 1; DB<2> sub Foo::new { bless {}, shift } DB<3> x UNIVERSAL::isa( 'Foo', 'UNIVERSAL' ); 0 1 DB<4> x UNIVERSAL::isa( 'Foo', 'UNIVERSAL' ); 0 1 DB<5> x UNIVERSAL::isa( 'Foo', 'UNIVERSAL' ); 0 1 DB<6> @Foo::ISA = (); DB<7> x UNIVERSAL::isa( 'Foo', 'UNIVERSAL' ); 0 1 DB<8> x UNIVERSAL::isa( 'Foo', 'UNIVERSAL' ); 0 '' DB<9> x UNIVERSAL::isa( 'Foo', 'UNIVERSAL' ); 0 '' DB<10>
foreach $p (@{$package . "::ISA"}) {
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Have I found a bug in Perl?
by chromatic (Archbishop) on Jan 11, 2004 at 07:17 UTC | |
by adamk (Chaplain) on Jan 11, 2004 at 07:29 UTC | |
|
Re: Have I found a bug in Perl?
by ysth (Canon) on Jan 11, 2004 at 07:14 UTC | |
by adamk (Chaplain) on Jan 11, 2004 at 07:25 UTC | |
|
Re: Have I found a bug in Perl?
by Aristotle (Chancellor) on Jan 11, 2004 at 15:13 UTC | |
by perrin (Chancellor) on Jan 11, 2004 at 18:46 UTC | |
|
Re: Have I found a bug in Perl?
by perrin (Chancellor) on Jan 11, 2004 at 18:48 UTC |