Language Perl
(BigInt)
Date: | 04/20/05 |
Author: | Anonymous |
URL: | n/a |
Comments: | 0 |
Info: | n/a |
Score: | (3.00 in 29 votes) |
#!/usr/bin/perl -w use Math::String 1.16; use Math::BigInt 1.48; my $i = Math::String->new('99',['0'..'9']); # counter my $cs = ["a".."z","A".."Z"," ",",","(",")","\n"]; # charset my $c = 'Math::String'; # class my $u = $c->from_number( # b. of beer on wall "143457256751672444408485136195337476997885002593618110354",$cs); my $v = $c->from_number( # take one, pass it "2183742159727155773060245326632596445683097582725669500",$cs); my $w = $c->from_number( # bottles of beer "121961920301233380909600391518980493",$cs); while ($i ne '00') { print "$i$u$i$w$v"; $i--; print "$i$u\n"; }
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 | |
minimal version | Mark Sheppard | 06/01/05 | 1 | |
object-oriented version | Scott Bryce | 05/15/05 | 1 | |
polyglot | Jeff Connelly | 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