in reply to Good package practices
In the script, you have:
use lib "../config"; use webData qw(GetLinks);
In webData.pm, you have:
package MyPackages::Config::webData;
See the difference? One has MyPackages::Config, one doesn't. You have two choices here - change the package declaration or change the 'use' statement:
(ie '../config/MyPackages/Config/webData.pm").use MyPackages::Config::webData qw(GetLinks);
|
---|