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

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
Hi, I'm on MacOS X and I have a couple of machines here, one Powerbook and one G5 desktop. Perl (apparently reporting the same version for both) has different @INC for each, and this is causing issues for gd-pm581 ( that I have installed via fink (as I can never get it to compile cleanly out of CPAN)
ashtaroth:~ dswan$ perl -e "print (@INC)" /sw/lib/perl5/5.8.1/darwin-thread-multi-2level/sw/lib/perl5/5.8.1/sw/l +ib/perl5/sw/lib/perl5/darwin/System/Library/Perl/5.8.1/darwin-thread- +multi-2level/System/Library/Perl/5.8.1/Library/Perl/5.8.1/darwin-thre +ad-multi-2level/Library/Perl/5.8.1/Library/Perl/Network/Library/Perl/ +5.8.1/darwin-thread-multi-2level/Network/Library/Perl/5.8.1/Network/L +ibrary/Perl. ashtaroth:~ dswan$
Embley-m6:/System/Library/Perl/5.8.1/darwin-thread-multi-2level dswan$ + perl -e "print (@INC)" /System/Library/Perl/5.8.1/darwin-thread-multi-2level/System/Library/P +erl/5.8.1/Library/Perl/5.8.1/darwin-thread-multi-2level/Library/Perl/ +5.8.1/Library/Perl/Network/Library/Perl/5.8.1/darwin-thread-multi-2le +vel/Network/Library/Perl/5.8.1/Network/Library/Perl.Embley-m6:/System +/Library/Perl/5.8.1/darwin-thread-multi-2level dswan$
The GD install has gone into /sw/lib/perl5/5.8.1/darwin-thread-multi-2level on both machines.

I know I can push paths into @INC with "use lib" but is there a way I can just get Perl to accept a new @INC permanently without major fiddling?



Bukowski - aka Dan (
"Coffee for the mind, Pizza for the body, Sushi for the soul" -Userfriendly

In reply to modifying @INC other than use lib? by Bukowski

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":

  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or or How to display code and escape characters are good places to start.
Log In?

What's my password?
Create A New User
Domain Nodelet?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2022-05-23 12:18 GMT
Find Nodes?
    Voting Booth?
    Do you prefer to work remotely?

    Results (82 votes). Check out past polls.