We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c443e17 commit c8ad266Copy full SHA for c8ad266
+stdlib/private/executable.pl
@@ -1 +1,11 @@
1
-print $^X;
+# https://perldoc.perl.org/variables/$%5EX
2
+# $^X may be relative, so we need to resolve it to an absolute path
3
+# we do not use $Config{perlpath} as that's a build-time variable and is thus
4
+# incorrect when a buildbot was used e.g. Windows Perl from Matlab
5
+#
6
+# https://perldoc.perl.org/Cwd#abs_path
7
+# abs_path is effectively realpath(3)
8
+
9
+use Cwd 'abs_path';
10
11
+print abs_path($^X);
0 commit comments