Voting

Category

real language

Bookmarking

Del.icio.us Digg Diigo DZone Earthlink Google Kick.ie
Windows Live LookLater Ma.gnolia Reddit Rojo StumbleUpon Technorati

Language Perl

(Lingua::EN::Inflect)

Date:04/20/05
Author:Marty Pauley
URL:n/a
Comments:0
Info:n/a
Score: (3.33 in 9 votes)
#!/usr/bin/perl
# Marty Pauley sings "99 bottles of beer"
use Lingua::EN::Inflect 'inflect';
print inflect(<<"SING") for (reverse(1 .. 99));
        NO(bottle,$_) of beer on the wall,
        NO(bottle,$_) of beer,
        Take one down and pass it around,
        NO(bottle,@{[$_-1]}) of beer on the wall.
SING

Download Source | Write Comment

Alternative Versions

VersionAuthorDateCommentsRate
bottled by Acme::EyeDropsAndrew Savige06/04/0555
polyglotJeff Connelly04/20/050
bottled versionChristopher J. Carlson05/17/055
object-oriented versionScott Bryce05/15/051
standard versionJim Menard04/20/052
minimal versionMark Sheppard06/01/051
for signatureRandolph Chung, Joey Hess04/20/050
BigIntAnonymous04/20/050

Comments

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!

Name:

eMail:

URL:

Security Code:
  
Comment: