projects
/
p5sagit/p5-mst-13.2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
36c726b
)
Fix for [perl #28963]: find2perl was sometimes generating
Rafael Garcia-Suarez [Wed, 28 Apr 2004 18:28:07 +0000 (18:28 +0000)]
invalid code.
p4raw-id: //depot/perl@22749
x2p/find2perl.PL
patch
|
blob
|
blame
|
history
diff --git
a/x2p/find2perl.PL
b/x2p/find2perl.PL
index
b99bb49
..
cc6c6d8
100644
(file)
--- a/
x2p/find2perl.PL
+++ b/
x2p/find2perl.PL
@@
-266,7
+266,9
@@
while (@ARGV) {
}
if ($print_needed) {
- $out .= "\n" . tab . '&& print("$name\n")';
+ my $t = tab;
+ if ($t !~ /&&\s*$/) { $t .= '&& ' }
+ $out .= "\n" . $t . 'print("$name\n")';
}