Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
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 romping around the Monastery: (6)
As of 2016-09-29 11:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (552 votes). Check out past polls.