in reply to How to determine the path to the Perl binary that executed your program?
works correctly, it will even report the soft link if used.print $ENV{_};
UPDATE:
To confirm setup a softlink (in *nix) ln -s /usr/bin/perl /usr/local/bin/perl.
then try:
/usr/local/bin/perl -e 'print "$ENV{_}\n"; print "$^X\n";'
Output:
/usr/local/bin/perl /usr/bin/perl
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to determine the path to the Perl binary that executed your program?
by Anonymous Monk on Sep 28, 2006 at 20:29 UTC | |
by demerphq (Chancellor) on Sep 29, 2006 at 07:50 UTC | |
by BrowserUk (Patriarch) on Sep 29, 2006 at 08:42 UTC | |
by demerphq (Chancellor) on Sep 29, 2006 at 09:46 UTC | |
|
Re^2: How to determine the path to the Perl binary that executed your program?
by mreece (Friar) on Sep 28, 2006 at 20:00 UTC |