Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
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 cooling their heels in the Monastery: (8)
As of 2016-06-27 22:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (347 votes). Check out past polls.