There's more than one way to do things | |
PerlMonks |
Re: Good package practicesby bmann (Priest) |
on Jan 26, 2006 at 22:46 UTC ( [id://525861]=note: print w/replies, xml ) | Need Help?? |
There is a problem with the package declaration in the module. The package name should match the path to the module relative to @INC.
In the script, you have:
In webData.pm, you have:
See the difference? One has MyPackages::Config, one doesn't. You have two choices here - change the package declaration or change the 'use' statement:
In Section
Seekers of Perl Wisdom
|
|