On Thu, 13 Oct 2005 06:52:52 -0400, Tom Allison wrote:
> I have two modules of the same name, current version and future version, 
> in two different directories.
> 
> $HOME/test/Module1.pm
> $HOME/test/Module2.pm
> $HOME/lib/Module1.pm
> $HOME/lib/Module2.pm
> 
> and another module:  $HOME/lib/Module3.pm
> 
> Under perl -d I can't seem to ignore the current versions 
> $HOME/lib/Module1.pm
> $HOME/lib/Module2.pm
> and see only the future version.
> 
> I can get part of the way there, but right now the modules in my test 
> directory have a call for "use lib '/home/tallison/lib'" that seems to 
> throw things a bit.  But I need that in order for Module3 to be available.
> 
> I've tried creating a shell script where I export a PERL5LIB with no 
> reference to my $HOME/lib directory and that doesn't work.  It still 
> finds the wrong module.
> 
> the option -M-lib doesn't seem to have any effect on this either.

I'm having a hard time following you, but it seems to me that

        perl -I/home/tallison/test -d

ought to work...

-- 
Peter Scott
http://www.perlmedic.com/
http://www.perldebugged.com/


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to