-
My parents and my friend Mike Harding have rated 1 wine, not 1 wines.
http://eclipsed.net/~gr/Pictures/20...
Pluralization in friends
Replies
-
10081371 - Reply by mark, Jul 18, 2007.
-
Ah. Thanks. (Fixed)
-
67695 - Reply by gr, Jul 18, 2007.
-
"WINE" . ($#wines > 0) ? "S" : "" ftw.
-
10081371 - Reply by mark, Jul 18, 2007.
-
Wait. Unless I'm missing something you want the 'S' when number of wines != 1.
-
67695 - Reply by gr, Jul 18, 2007.
-
I do, and your fix does that. So does my code, but in Perl.
When there's one item in an array (@) in Perl, $#array == 0 (because element 0 is filled). When you undef @array, then $#array == -1.
-
10081371 - Reply by mark, Jul 18, 2007.
-
Oh!