in reply to Good package practices
and since there is no webData package to call import for, no importing happens.BEGIN { require "webData.pm"; "webData"->import( qw(GetLinks) ); }
Since you seem to say the long package name is a necessity, the easiest solution is to change your filenames to match, so you have:
and do use MyPackages::Config::webData qw(GetLinks);./myApp/cgi/login.cgi /myApp/config/MyPackages/Config/webData.pm
|
---|