projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
36c726b
)
Fix for [perl #28963]: find2perl was sometimes generating
author
Rafael Garcia-Suarez
<rgarciasuarez@gmail.com>
Wed, 28 Apr 2004 18:28:07 +0000
(18:28 +0000)
committer
Rafael Garcia-Suarez
<rgarciasuarez@gmail.com>
Wed, 28 Apr 2004 18:28:07 +0000
(18:28 +0000)
invalid code.
p4raw-id: //depot/perl@22749
x2p/find2perl.PL
patch
|
blob
|
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")';
}