Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Compiling Perl with correct values in @INC

by Courage (Parson)
on Aug 15, 2002 at 20:14 UTC ( #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...


Comment on Re: Compiling Perl with correct values in @INC
Download Code
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
Node Status?
node history
Node Type: note [id://190514]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2014-08-29 08:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (277 votes), past polls