Language Perl
(minimal version)
| Date: | 06/01/05 |
| Author: | Mark Sheppard |
| URL: | n/a |
| Comments: | 1 |
| Info: | n/a |
| Score: |
This one's slightly longer than the original (155 bytes), but the output's more
correct - it doesn't have an "s" after "1 bottle" and it has punctuation at the
end of each line:
sub b{$n=99-@_-$_||No;"$n bottle"."s"x!!--$n." of beer"};$w=" on the wall";
die map{b."$w,\n".b.",\nTake one down, pass it around,\n".b(0)."$w.\n\n"}0..98
Download Source | Write Comment
Alternative Versions
| Version | Author | Date | Comments | Rate |
|---|---|---|---|---|
| bottled by Acme::EyeDrops | Andrew Savige | 06/04/05 | 76 | |
| for signature | Randolph Chung, Joey Hess | 04/20/05 | 0 | |
| standard version | Jim Menard | 04/20/05 | 2 | |
| bottled version | Christopher J. Carlson | 05/17/05 | 7 | |
| Lingua::EN::Inflect | Marty Pauley | 04/20/05 | 1 | |
| object-oriented version | Scott Bryce | 05/15/05 | 1 | |
| polyglot | Jeff Connelly | 04/20/05 | 0 | |
| BigInt | Anonymous | 04/20/05 | 0 |
Download Source | Write Comment
Add Comment
Please provide a value for the fields Name,
Comment and Security Code.
This is a gravatar-friendly website.
E-mail addresses will never be shown.
Enter your e-mail address to use your gravatar.
Please don't post large portions of code here! Use the form to submit new examples or updates instead!
Comments
sub'b{[@b=(abs||No,bottle."s"x!!++$_,of,beer),on,the,wall]}warn
"@{+b},\n@b,\nTake one down, pass it around,\n@{+b}.\n\n"for-99..-1