Skip Menu |

This queue is for tickets about the Lingua-EN-Inflect CPAN distribution.

Report information
The Basics
Id: 119242
Status: new
Priority: 0/
Queue: Lingua-EN-Inflect

Owner: Nobody in particular
Requestors: sthoenna [...]

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

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 [...]
From: Yitzchak Scott-Thoennes <sthoenna [...]>
Download (untitled) / with headers
text/plain 507b
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.

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to