Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the List-ToHumanString CPAN distribution.

Report information
The Basics
Id: 102219
Status: open
Priority: 0/
Queue: List-ToHumanString

People
Owner: Nobody in particular
Requestors: cpan [...] zoffix.com
Cc:
AdminCc:

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



Subject: Add number of elements in the list into string options
Would be nice to have the ability to do, say, this: to_human_string("There {is|are} |NUM| elements in the list. Here they are: |list|\n", 1, 2, 3), And possible output would be: "There are 3 elements in the list. Here they are: 1, 2, and 3\n" -- Cheers, ZZ [ https://metacpan.org/author/ZOFFIX ]
On 2015-02-19 12:14:07, ZOFFIX wrote: Show quoted text
> > Would be nice to have the ability to do, say, this: > > to_human_string("There {is|are} |NUM| elements in the list. Here they > are: |list|\n", 1, 2, 3), > > And possible output would be: > > "There are 3 elements in the list. Here they are: 1, 2, and 3\n"
Nitpicking: should probably be "... element{|s} ...".