You need to add the full directory containing directory B to @INC:
In reply to Re: Directory Structure by toolic in thread Directory Structure by prakash1987