Subject: | Minor bug in documentation synopsis |
The documentation's synopsis contains a minor error in the location of the closing parentheses. As is, the sample program produces:
perl -e'
use Text::Pluralize;
print pluralize("file", $count);
print pluralize("%d file(s) copied\n"), $count;
print pluralize("There (was|were) {no|one|%d} error(s)\n", $count);
'
Not enough arguments for Text::Pluralize::pluralize at - line 4, near ""%d file(s) copied\n")"
Execution of - aborted due to compilation errors.
The final closing parenthesis of the second example should, of course, come *after* the $count variable.
A diff of the orignal and corrected .pm file:
28c28
< print pluralize("%d file(s) copied\n"), $count;
---
Show quoted text
> print pluralize("%d file(s) copied\n", $count);