rovf has asked for the wisdom of the Perl Monks concerning the following question:

Hello Fellow Monks!

I found that (with ActiveState Perl 5.8.7 and 5.10) when I specify the PERL5LIB using UNC path notation, a require 'mylib.pl' does not find mylib.pl; but when I assign a windows drive letter to my network directory and use this instead of the UNC path in PERL5LIB, the file will be found.

Is this a known problem in Active State Perl, or do I have to observe certain rules when using UNC pathes?

==================================================
ADDED LATER:
MY MISTAKE!!!! I found the error on my side. It would be great if this node would get reaped....
(How can one "strike out" things in a node which has been posted already?)
-- 
Ronald Fischer <ynnor@mm.st>

Replies are listed 'Best First'.
Re: PERL5LIB and Windows UNC Path
by pjotrik (Friar) on Aug 21, 2008 at 11:12 UTC
    Use <strike>wrong</strike> to strike things that are wrong
Re: PERL5LIB and Windows UNC Path
by ikegami (Patriarch) on Aug 21, 2008 at 21:49 UTC

    It works fine with ActiveState 5.6.0, 5.6.1, 5.8.0, 5.8.8 and 5.10.0.

    C:\>md Foo C:\>echo "package Bar; 1" > Foo\Bar.pm C:\>perl -e"use Bar" Can't locate Bar.pm in @INC (@INC contains: c:/Progs/perl588/lib c:/Pr +ogs/perl588/site/lib .) at -e line 1. BEGIN failed--compilation aborted at -e line 1. C:\>set PERL5LIB=C:\Foo C:\>perl -e"use Bar" C:\>set PERL5LIB=\\tribble05\C$\Foo C:\>perl -e"use Bar"