P is for Practical | |
PerlMonks |
Re: Can locate when called directly, but can't when in @ISAby Gilimanjaro (Hermit) |
on Oct 05, 2007 at 11:44 UTC ( [id://642901]=note: print w/replies, xml ) | Need Help?? |
@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);
In Section
Seekers of Perl Wisdom
|
|