X-Git-Url: https://perl5.git.perl.org/perl5.git/blobdiff_plain/6d08f7b3ce620464fc90c69d034fd4a407ea3341..327088eb578a0735092b848475594c9f76cc4945:/dist/B-Deparse/Deparse.pm diff --git a/dist/B-Deparse/Deparse.pm b/dist/B-Deparse/Deparse.pm index 88cce1f..612676b 100644 --- a/dist/B-Deparse/Deparse.pm +++ b/dist/B-Deparse/Deparse.pm @@ -2568,6 +2568,15 @@ sub listop { return "$exprs[0] = $fullname" . ($parens ? "($exprs[0])" : " $exprs[0]"); } + if ($name =~ /^(system|exec)$/ + && ($op->flags & OPf_STACKED) + && @exprs > 1) + { + # handle the "system prog a1,a2,.." form + my $prog = shift @exprs; + $exprs[0] = "$prog $exprs[0]"; + } + if ($parens && $nollafr) { return "($fullname " . join(", ", @exprs) . ")"; } elsif ($parens) {