in reply to Can locate when called directly, but can't when in @ISA
@ISA doesn't magically load the classes you're inheriting from. The child class Lens still needs to load (use) the parent class Cloud.
Also, you may want to 'use strict' and 'use warnings' and prefix @ISA with 'our'.
You can do both by using the 'base' pragma:
use base qw(Exporter Cloud);
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Can locate when called directly, but can't when in @ISA
by almut (Canon) on Oct 05, 2007 at 13:01 UTC | |
by perlfan (Vicar) on Oct 05, 2007 at 14:34 UTC | |
Re^2: Can locate when called directly, but can't when in @ISA
by Phemto (Acolyte) on Oct 05, 2007 at 11:57 UTC |
In Section
Seekers of Perl Wisdom