inman has asked for the wisdom of the Perl Monks concerning the following question:
Any other methods?#! /usr/bin/perl -w foreach (reverse 1..10){ sub wall {$a=$_-1?'s':'';"$_ green bottle$a, standing on a wall\n"} print wall($_)x2, "and if 1 green bottle should accidentally fall\nthere'll be ", wall(--$_),"\n"}
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Bottle Golf
by Enlil (Parson) on Jun 10, 2004 at 21:44 UTC | |
by eyepopslikeamosquito (Archbishop) on Jun 11, 2004 at 09:10 UTC | |
Re: Bottle Golf
by shemp (Deacon) on Jun 10, 2004 at 21:32 UTC | |
by shemp (Deacon) on Jun 10, 2004 at 22:17 UTC | |
by Roy Johnson (Monsignor) on Jun 11, 2004 at 03:32 UTC | |
Re: Bottle Golf
by shemp (Deacon) on Jun 10, 2004 at 21:24 UTC |