Skip Menu |

This queue is for tickets about the Text-Pluralize CPAN distribution.

Report information
The Basics
Id: 16007
Status: new
Priority: 0/
Queue: Text-Pluralize

People
Owner: Nobody in particular
Requestors: lallip [...] cs.rpi.edu
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: (no value)



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);