$n=4; print $n." -- ".(--$n,($n||'no more')).".\n" while $n; __END__ sub b{' bottle'.($n==1?'':'s').' of beer'} $w=' on the wall'; $n=99;print$n.b.$w.', '.$n.b.".\nTake one down and pass it around, ".(--$n,($n||'no more').b.$w).".\n\n"while$n; print"No more".b."$w, no more".b.".\nGo to the store and buy some more, 99".b."$w." #output on 5.28 98 bottles of beer on the wall, 98 bottles of beer. Take one down and pass it around, 98 bottles of beer on the wall. ... 1 bottles of beer on the wall, 1 bottles of beer. Take one down and pass it around, 1 bottle of beer on the wall. 0 bottle of beer on the wall, 0 bottle of beer. Take one down and pass it around, no more bottles of beer on the wall. No more bottles of beer on the wall, no more bottles of beer. Go to the store and buy some more, 99 bottles of beer on the wall.