Adam has asked for the wisdom of the Perl Monks concerning the following question:
What am I doing wrong? Or am I just mis-using @ISA?#!perl -w use strict; package Top; use Carp; carp( __PACKAGE__ ." has been loaded" ); package Top::level; use vars qw( @ISA ); @ISA = ( 'Top' ); carp( __PACKAGE__ ." has been loaded" ); __END__ Output: Top has been loaded at test.pl line 6 Undefined subroutine &Top::level::carp called at test.pl line 11.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(tye)Re: A question of inheritance
by tye (Sage) on Nov 28, 2000 at 23:20 UTC | |
by Dominus (Parson) on Nov 28, 2000 at 23:56 UTC | |
by tye (Sage) on Nov 29, 2000 at 00:13 UTC | |
by merlyn (Sage) on Nov 28, 2000 at 23:31 UTC | |
|
Re: A question of inheritance
by merlyn (Sage) on Nov 28, 2000 at 23:20 UTC | |
|
Re: A question of inheritance
by chipmunk (Parson) on Nov 28, 2000 at 23:21 UTC | |
|
Re: A question of inheritance
by arturo (Vicar) on Nov 28, 2000 at 23:15 UTC |