in reply to Re: use directives
in thread use directives

thanks for all the responses. Exporter ended up having nothing to do with it, i happened to comment out a using line that got rid of my errors and thought it was Exporter related. my first post was not my real code, just trying to show the using hiearchy. Here's a better example of what I have and how I fixed it.

Directory Structure:

psuedo-code
file: /myapp/main.pl ------------------ use lib '..\lib'; use A::Common; use A::MyLib; file: /lib/MyLib.pl -------------------- BEFORE: use lib '..\lib'; use lib '..\lib\A'; use Common; AFTER: Changing to this fixed it: use lib '..\lib'; use A::Common;

I should note, there were no subroutines duplicated, when it was erroring it had an "subroutine duplicated" error for every subroutine and constant in "Common.pm" which is why I knew it was an issue with the using statements.