#!/usr/bin/env python """ =head1 NAME Bottles::OfBeer - Prints Bottles of Beer =head1 SYNOPSIS ./thing.pl --look-like-perl true =head1 DESCRIPTION Print out the Bottles of Beer on the Wall song using the magic of perlish python. =head1 LICENSE This is released under the Artistic License. See L. =head1 AUTHOR Sean B. Palmer - L =head1 SEE ALSO L, L =cut """ def sub_bottlesofbeer(): #{ my_template_1="\n%s bottle(s) of beer on the wall"; my_template_2="\nTake one down, pass it around"; for _ in xrange(99,0,-1): #{ my_FIRST = (my_template_1%_*2)[:-12]+my_template_2; my_SECOND = my_template_1%(_-1 or "No"); print(my_FIRST+my_SECOND); #} #} sub_bottlesofbeer() # EOF