in reply to Bottle Golf
whoops, i guess my first attempt was a little off. Also, bottle should be pluralized except when there is 1 bottle left. Even zero bottles is plural.
played a little more, here something better, without a sub
(hopefully correct)
played a little more, here something better, without a sub
print join "\n", map { "and if 1 green bottle should accidentally fall +\n" ."there'll be " . ($_-1) . " green bottle" .($_!=2?'s':'') . ", standing on a wall\n" } (reverse 1..10);
(hopefully correct)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Bottle Golf
by shemp (Deacon) on Jun 10, 2004 at 22:17 UTC | |
by Roy Johnson (Monsignor) on Jun 11, 2004 at 03:32 UTC |
In Section
Seekers of Perl Wisdom