Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: How to determine the path to the Perl binary that executed your program?

by Gilimanjaro (Hermit)
on Sep 29, 2006 at 12:19 UTC ( #575515=note: print w/ replies, xml ) Need Help??


in reply to How to determine the path to the Perl binary that executed your program?

On Linux the following should and indeed seems to work:

print readlink("/proc/$$/exe"),"\n";
Probably won't work on any other OS though...


Comment on Re: How to determine the path to the Perl binary that executed your program?
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (12)
As of 2014-12-22 21:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (131 votes), past polls