Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: too much free time (99 Bottles of Beer)

by eyepopslikeamosquito (Archbishop)
on Mar 31, 2014 at 10:01 UTC ( [id://1080376]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    10 REM BASIC Version of 99 Bottles of beer
    20 FOR X=100 TO 1 STEP -1
    ...
    40 PRINT "Take one down and pass it around,"
    50 PRINT X-1;"bottle(s) of beer on the wall"
    60 NEXT
    
  2. or download this
    use Lingua::EN::Inflect 'inflect';
    $n=shift||99;
    ...
    Take one down, pass it around,
    NO(bottle of beer,@{[--$n]}) on the wall.
    BURP
    
  3. or download this
        ''=~(        '(?{'        .('`'        |'%')        .('['        ^
    +'-')
        .('`'        |'!')        .('`'        |',')        .'"'.        '
    +\\$'
    ...
     '.').("\`"|  '.').("\`"|  '$')."\,".(  '!'^('+')).  '\\",_,\\"'  .'!'
    +.("\!"^
     '+').("\!"^  '+').'\\"'.  ('['^',').(  '`'|"\(").(  '`'|"\)").(  '`'|
    +"\,").(
     '`'|('%')).  '++\\$="})'  );$:=('.')^  '~';$~='@'|  '(';$^=')'^  '[';
    +$/='`';
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1080376]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2024-04-23 09:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found