in reply to Stuck with can't find module error

The problem with backslashes is that they can be interpreted as the start of escape sequences. Either double them, or use forward slashes. I prefer the latter, but either of these might work:

use lib 'c:\\h\\COTS\\Perl\\lib'; use lib 'c:/h/COTS/Perl/lib';

As a side note, it's can be considered a bit rude to start a new question instead of posting a followup to a previous question. If you're in a real fix, you might ask in the chatterbox to see if anyone can give you a hand.

Replies are listed 'Best First'.
Re^2: Stuck with can't find module error (yes and no)
by tye (Sage) on Apr 16, 2003 at 16:03 UTC

    I agree completely with the advice. But in this specific case, 'c:\h\COTS\Perl\lib' eq 'c:\\h\\COTS\\Perl\\lib', so this is not the source of the problem.

    The reason I agree with the advice is that using strings like 'c:\h\COTS' often leads to mistakes such as using a string like 'c:\h\COTS\' (which will probably be a syntax error, depending on what comes after it) or '\\server\share' (which has a value of \server\share, containing only a single opening backslash).

                    - tye