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);
In reply to Re: Good package practices
by bmann
in thread Good package practices
by joe_kool
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |