oh no... forgot to login too *g* | [reply] |
129, and properly decrements the count inside of the verse
$i=99;$b="bottles of beer";$o=" on the wall";while($i){print "$i $b$o, $i $b\nTake one down, pass it around\n",--$i," $b$o!\n\n"}
186, but accounts for the fact that you would say 1 bottle but still say 0 bottles.
$i=99;$f=" of beer";$o=" on the wall";while($i){$b="bottle";$b.="s"if$i!=1;print" $b$f$o\n\n"if$i!=99;print"$i $b$f$o, $i $b$f\nTake one down, pass it around, ",--$i}print" ${b}s$f$o\n";
--Gilder
| [reply] [d/l] [select] |