Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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 wandering the Monastery: (12)
As of 2014-08-29 22:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (289 votes), past polls