Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Compiling Perl with correct values in @INC

by Courage (Parson)
on Aug 15, 2002 at 20:14 UTC ( [id://190514]=note: print w/replies, xml ) Need Help??


in reply to Compiling Perl with correct values in @INC

  1. perl built on different OSes has different logic for @INC population.
  2. Your script will work just fine if you'll place at the very start of it:
    BEGIN { @INC = ('/dir1','/your/special/dir/here'); } # rest of your code goes here
    I use that approach sometimes in my scripts.
  3. recompiling perl is much easier that it initially seemes to. And lot of platform-specific READMEs help a lot.
addition: BTW what is your OS?

Courage, the Cowardly Dog
things, I do for love to perl...

Replies are listed 'Best First'.
Re: Re: Compiling Perl with correct values in @INC
by higle (Chaplain) on Aug 15, 2002 at 21:12 UTC
    The machine in question is running HP-UX, and I found one (1) document specific to building perl on that OS :c\

    The problem was, Courage, without rebuilding the executable with the correct @INC, I would have to unshift(@INC, qw{dir dir dir...}); all the scripts that I wrote on that machine, as well as look forward to explaining this whole thing to the other programmers who use that box. That would truly have been a bummer of cosmic proportions.

      higle
      Things are entirely different if you're building perl for many users on that machine.

      I just looked at perl-5.8.0 source distribution, and found README.HPUX file there - it should help you in build process...

      Courage, the Cowardly Dog

Re: Re: Compiling Perl with correct values in @INC
by mcavoy76 (Acolyte) on Aug 15, 2002 at 21:25 UTC
    This also works great if your hosting company doesn't want to install a particular module.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2024-03-19 05:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found