Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^2: modifying @INC other than use lib?

by merlyn (Sage)
on Apr 18, 2005 at 12:46 UTC ( #448824=note: print w/replies, xml ) Need Help??


in reply to Re: modifying @INC other than use lib?
in thread modifying @INC other than use lib?

Never edit your Config.pm: that's meant to be a runtime reference to a number of settings that your Perl was compiled with.

In particular, the initial value for @INC doesn't even come from there: it comes from a hardwired path compiled into the binary. Otherwise, how could Perl find the Config.pm file? Psychic powers?

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.

  • Comment on Re^2: modifying @INC other than use lib?

Replies are listed 'Best First'.
Re^3: modifying @INC other than use lib?
by Bukowski (Deacon) on Apr 18, 2005 at 13:39 UTC
    Thanks Randal,

    I didn't get around to modifying it anyway before I hit on a lower tech solution:

    cd /sw/lib/perl5/5.8.1/darwin-thread-multi-2level/ sudo cp -R GD GD.pm /System/Library/Perl/5.8.1/darwin-thread-multi-2le +vel/ sudo cp -R auto/GD/ /System/Library/Perl/5.8.1/darwin-thread-multi-2l +evel/auto/
    I did try this before but failed to copy across the auto/ and it was complaining about not being able to find the loadable object.

    Also for the record I did also try this with symlinks and it didn't appear to work :/

    Dan

    Bukowski - aka Dan (dcs@black.hole-in-the.net)
    "Coffee for the mind, Pizza for the body, Sushi for the soul" -Userfriendly
Re^3: modifying @INC other than use lib?
by jacques (Priest) on Apr 18, 2005 at 18:14 UTC
    Otherwise, how could Perl find the Config.pm file? Psychic powers?

    I think there's a Perl6 RFC on that one. ;)

Re^3: modifying @INC other than use lib?
by bsdz (Friar) on Apr 19, 2005 at 08:54 UTC
    Editing your Config.pm can be your only option sometimes; especially when relocating your Perl binary/library tree, and switching between using nmake or dmake in a Windows environment.
        That's funny; I relocate my Perl port niPerl without recompiling. I use a VBScript to do the relocation that edits Config.pm during the MSI installation process. I've had no complaints yet, seems to work too. I believe ActiveState do the same sort of thing.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2020-01-22 03:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?