tsk1979 has asked for the wisdom of the Perl Monks concerning the following question:
Now nothing stops user from doing$SOFTWARE_PATH/perl/bin/perl myscript.pl <option>
We don't want user to do that as the user installation may have older version of perl. So is there a way to check from inside myscript.pl, that what was the path from where perl was invoked? I searched google high and low, but could not find anything!/usr/bin/perl myscript.pl
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to find which perl was used to invoke script
by laminee (Novice) on Aug 21, 2009 at 07:28 UTC | |
|
Re: How to find which perl was used to invoke script
by Boldra (Curate) on Aug 21, 2009 at 07:53 UTC | |
by Anonymous Monk on Aug 21, 2009 at 07:58 UTC | |
by Burak (Chaplain) on Aug 21, 2009 at 14:08 UTC |