Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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 chanting in the Monastery: (4)
As of 2014-09-21 15:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (172 votes), past polls