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

Do i need to install all the modules?

Bacause i have not installed any of the module and have just copied the pm files.

Replies are listed 'Best First'.
Re^3: Perl on Unix
by jethro (Monsignor) on Aug 11, 2011 at 09:45 UTC

    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") }
      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.