![]() |
|
good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Can I clean this up??by dimmesdale (Friar) |
on Jul 25, 2002 at 01:21 UTC ( #185083=note: print w/replies, xml ) | Need Help?? |
You may want to check out Lingua::EN::Inflect -- it takes a singular form of a noun/verb/some adjectives and spits out the plural form.
From the docs, it can do it conditionally as such:
Your conditional statement just wants to make the is/are look right for the end user -- now you've gotten helpful repiles for something that works specifically for the is/are part, but in the future if you need more flexibiilty you can consider the module.
In Section
Seekers of Perl Wisdom
|
|