As I mentioned, when myCustom::SysLogLoader uses Exporter, you have to write
{ eval "package $caller; myCustom::SysLogLoader->import();" }
Likewise for the other modules. Simply writing
myCustom::SysLogLoader->import();
won't work in this case, because Exporter will then export the functions/symbols into the package abc, not the package in which you say use abc;
___
P.S.: please use code tags (<c>...</c>) for code, and also please cut-n-paste it — there are several typos in what you posted. |