Subject: | inflect should take an optional second parameter like PL* do |
Date: | Wed, 14 Dec 2016 13:24:10 -0800 |
To: | bug-Lingua-EN-Inflect [...] rt.cpan.org |
From: | Yitzchak Scott-Thoennes <sthoenna [...] gmail.com> |
inflect() should take an optional second parameter like PL* do, to use
as the initial default number instead of $persistent_count.
This would simplify code like this:
if (@error) {
Lingua::EN::Inflect::NUM(scalar @error);
$message .= inflect "The following PL_N(error) PL_V(was)
encountered:\n\n";
to
if (@error) {
$message .= inflect "The following PL_N(error) PL_V(was)
encountered:\n\n", scalar @error;
and avoid the need to set the global value for a transient use.