Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: 99 bottles, 2 lines

by jepri (Parson)
on Nov 28, 2000 at 13:40 UTC ( #43638=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    foreach(1..99){$b="\n$_ bottle@{[$_!=1&&s=>]} of beer";push@a,",\nTake
    + one down, pass it round,$d@{$d=$b.' on the wall'}\n",$d.$b};print re
    +verse@a;
    
  2. or download this
    seek DATA, 38,0;                                                      
    +          
    $_=join("",<DATA>);                                                   
    +         
    ...
    s/$b/$b-1/e;                                                          
    +          
    s/ (\$.)/$1 bottles of beer/g;                                        
    +          
    eval;__DATA__                                                         
    +          
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (7)
As of 2015-07-03 08:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (49 votes), past polls