in reply to Re^2: Perl on Unix
in thread Perl on Unix

It might work for many modules, but some modules have parts programmed in C (for speed reasons) and these need to be compiled.

If you install them, they usually get stored in a location where perl looks automatically so you don't need those 'use lib...' stuff

Your line

BEGIN { unshift(@INC, "\path\modules") }

is not working because backslashes have a special meaning. What you want is

BEGIN { unshift(@INC, "/path/modules") } or BEGIN { unshift(@INC, "\\path\\modules") }

Replies are listed 'Best First'.
Re^4: Perl on Unix
by JavaFan (Canon) on Aug 11, 2011 at 11:03 UTC
    No, on Unix you do not want unshift(@INC, "\\path\\modules"). That contains no path separator, and refers to a file or directory in the current directory with 13 characters in its name.