summaryrefslogtreecommitdiffstats
path: root/MDK/Common/String.pm
diff options
context:
space:
mode:
Diffstat (limited to 'MDK/Common/String.pm')
-rw-r--r--MDK/Common/String.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/MDK/Common/String.pm b/MDK/Common/String.pm
index b5a588c..bac5a24 100644
--- a/MDK/Common/String.pm
+++ b/MDK/Common/String.pm
@@ -82,7 +82,7 @@ sub bestMatchSentence {
}
$best = $count, $bestSentence = $_ if $count > $best;
}
- wantarray ? ($bestSentence, $best) : $bestSentence;
+ wantarray() ? ($bestSentence, $best) : $bestSentence;
}
@@ -149,7 +149,7 @@ sub warp_text {
}
push @l, "$beg$t";
}
- wantarray ? @l : join("\n", @l);
+ wantarray() ? @l : join("\n", @l);
}
1;