in reply to Pluralize nouns

hmm, I always liked
print "$item item". ($item==1 ? "" : "s"). " in the set\n";

--
$you = new YOU;
honk() if $you->love(perl)

Replies are listed 'Best First'.
Re: Pluralize nouns
by epoptai (Curate) on Dec 11, 2000 at 14:16 UTC
    Nice one! However, as my simplified example doesn't show, this snippet was written to handle pluralizing within here docs, hence the subroutine.

    thanks for the educational reply - epoptai