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.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.