in reply to Perl on Unix

What should I do?..

Install the missing module

Replies are listed 'Best First'.
Re^2: Perl on Unix
by tej (Scribe) on Aug 11, 2011 at 09:35 UTC

    Do i need to install all the modules?

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

      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.