prashanthch has asked for the wisdom of the Perl Monks concerning the following question:
Lets assume I have two perl binaries which can run my script (perla, perlb which represent two versions of perl). Is there a way to determine which perl was used to run the script from inside the script? I know that $0 gives the script name but how do I get the binary that is running the script?
Thanks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: get binary executing my script
by thundergnat (Deacon) on Mar 16, 2012 at 18:40 UTC | |
by prashanthch (Novice) on Mar 16, 2012 at 19:06 UTC | |
|
Re: get binary executing my script
by Marshall (Canon) on Mar 16, 2012 at 17:31 UTC | |
by prashanthch (Novice) on Mar 16, 2012 at 18:35 UTC |