summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorRobin Houston <robin@cpan.org>2001-05-11 13:02:22 +0100
committerJarkko Hietaniemi <jhi@iki.fi>2001-05-11 12:52:49 +0000
commit145eb477362c0def60b3ef8ad6349c490a44735a (patch)
tree1b077b939fca9fa56bfb2bb225b8e17bc1772aa8 /ext
parent85b4d566cfc4cf2b1ecaeebe47e23f42cb8382a1 (diff)
downloadperl-145eb477362c0def60b3ef8ad6349c490a44735a.tar.gz
$foo->bar(0)
Message-ID: <20010511120222.A11529@penderel> p4raw-id: //depot/perl@10080
Diffstat (limited to 'ext')
-rw-r--r--ext/B/B/Deparse.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/B/B/Deparse.pm b/ext/B/B/Deparse.pm
index 21fdd15114..19e9451286 100644
--- a/ext/B/B/Deparse.pm
+++ b/ext/B/B/Deparse.pm
@@ -2756,7 +2756,7 @@ sub method {
}
my $args = join(", ", @exprs);
$kid = $obj . "->" . $meth;
- if ($args) {
+ if (length $args) {
return $kid . "(" . $args . ")"; # parens mandatory
} else {
return $kid;