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 548917b commit 9ea48d2Copy full SHA for 9ea48d2
+stdlib/perl_exe.m
@@ -17,6 +17,8 @@
17
if s == 0 && isfile(r)
18
exe = r;
19
perle = r;
20
+else
21
+ exe = string.empty;
22
end
23
24
+stdlib/perl_version.m
@@ -15,14 +15,18 @@
15
return
16
-cmd = sprintf('"%s" -e "print $^V"', stdlib.perl_exe());
+v = [];
-[s, r] = system(cmd);
+exe = stdlib.perl_exe();
-if s == 0
- v = sscanf(r, 'v%d.%d.%d').';
-else
25
- v = [];
+if ~stdlib.strempty(exe)
+ cmd = sprintf('"%s" -e "print $^V"', exe);
+
+ [s, r] = system(cmd);
26
27
+ if s == 0
28
+ v = sscanf(r, 'v%d.%d.%d').';
29
+ end
30
31
32
% cache the result - even if empty -- because the check takes up to 1000 ms say on HPC
0 commit comments