I'm writing a CGI script on Win32 that needs to borrow a module from a different installation of Perl. The module I need (XML::XPath) is on a network drive, so I'm using code like this:
use lib "\\\\otherbox\\path\\to\\site\\lib";
use XML::XPath;
use XML::XPath::XMLParser;
This sort-of works -- it sees XPath.pm, apparently. But I get another not found error:
Can't load '\\otherbox\path\to\site\lib/auto/XML/Parser/Expat/Expat.dl
+l' for module XML::Parser::Expat: load_file:The specified module coul
+d not be found at C:\path\to/DynaLoader.pm line 229.
at \\otherbox\path\to\site\lib/XML/Parser.pm line 14
I've changed the paths, but kept the varying slash directions. I've verified that Expat.dll exists at the location it's trying (if all the slashes are going the same way). Am I doing the 'use lib' part wrong for a network drive?
---
A fair fight is a sign of poor planning.