Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^5: path to perl interpreter (use Config)

by grinder (Bishop)
on Sep 29, 2005 at 12:53 UTC ( #496081=note: print w/replies, xml ) Need Help??


in reply to Re^4: path to perl interpreter
in thread path to perl interpreter

the value of $^X may be a relative or absolute pathname of the perl program file, or may be the string used to invoke perl but not the pathname of the perl program file.

In that case, wheel out the heavy artillery.

use Config; my $perl = $Config{perlpath}; $perl .= $Config{_exe} if $^O ne 'VMS' and $perl !~ /$Config{_exe}$/i; print "executable is $perl\n";

(Completely off-topic: This is my 1000th post!)

• another intruder with the mooring in the heart of the Perl

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://496081]
help
Chatterbox?
[LanX]: Oxfam: The local corner shop where I buy bread probably pays a higher tax rate than Apple.
[LanX]: iBread ...soon to come!
[LanX]: 240 Billion ? ... thats a low estimation

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (11)
As of 2017-01-19 15:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (170 votes). Check out past polls.