Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
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 ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://575515]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2024-04-19 03:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found