in reply to 99 bottles of beer on the wall
Oh, and $beer should be decremented at the moment you say "take one down".