in reply to Re^2: How to determine the path to the Perl binary that executed your program?
in thread How to determine the path to the Perl binary that executed your program?
No, $^X comes from C's argv[0]. If perl was in the path, then it may just be "perl", in which case File::Which should track down the correct version. Or it could be a relative path, which can be resolved to a full path.