Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Why am I getting two different results for my @INC variable?

by MrSnrub (Beadle)
on Nov 29, 2011 at 00:58 UTC ( [id://940503]=note: print w/replies, xml ) Need Help??


in reply to Why am I getting two different results for my @INC variable?

When I do a which perl I get /usr/bin/perl, but the shebang in my code is different. I change my code to /usr/bin/perl, and now I get correct results. Huh.

Replies are listed 'Best First'.
Re^2: Why am I getting two different results for my @INC variable?
by MidLifeXis (Monsignor) on Nov 29, 2011 at 13:25 UTC

    This makes sense. From the command prompt you would be using the same perl as found from which perl. If the shebang is different, find out why. The system perl is not necessarily the one your application is expecting, nor is the one your shebang line pointing to necessarily appropriate for system use.

    For my $day_job, I ignore the system perl entirely, and build or include the perl installation as part of my application (or set of applications). Changes to the system then have less of a chance of impacting my applications.

    --MidLifeXis

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (2)
As of 2024-04-26 02:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found