Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^2: Perl on Unix

by tej (Scribe)
on Aug 11, 2011 at 09:35 UTC ( [id://919828]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://919828]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2024-04-20 16:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found