If you can ensure that perl is called with an explicit interpreter, either by fully qualifying the path or by using the Windows extension mechanism then $^X should be reliable.
In reply to Re^3: How to determine the path to the Perl binary that executed your program?
by demerphq
in thread How to determine the path to the Perl binary that executed your program?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |