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 5231996Copy full SHA for 5231996
+stdlib/private/executable.pl
@@ -1 +1,11 @@
1
-print $^X;
+# https://perldoc.perl.org/variables/$%5EX
2
+# we do this instead of $^X to get a full reliable path to Perl
3
+
4
+use Config;
5
+my $secure_perl_path = $Config{perlpath};
6
+if ($^O ne 'VMS') {
7
+ $secure_perl_path .= $Config{_exe}
8
+ unless $secure_perl_path =~ m/$Config{_exe}$/i;
9
+}
10
11
+print $secure_perl_path
0 commit comments