On Thu, Aug 16, 2001 at 05:20:07PM -0400, Philip Mak wrote:
> But the code in "otherinr2" is getting the cfg.pm from "inr2" since they
> have the same filename and relative paths. How can I make the "use"
> command not act braindead about this? Is there a CPAN module that I can
> import to overload the use command with something that takes the full
> pathname into account perhaps?

How about:

do "cfg.pm";

But I'm not sure it will do what you actually want.  You're gonna have name
space collisions if you're using the cfg name space for anything.  About the
only way it could work is if all you did was export some symbols.  If that's
all you're doing then you might be better of by just making them .pl files
and not changing name spaces (and thus importing all symbols without having
to use Exporter).

-- 
Andy <[EMAIL PROTECTED]> - http://anime.mikomi.org/ - Community Anime Reviews
  "All the pain, swelling and immobility of a fracture without the
  inconvenience of a fracture itself."
     -- Lintilla, HHGTTG Radio Show

Reply via email to