Perl-Sensitive Sunglasses | |
PerlMonks |
Re: ASCII Pattern - Golfby glwtta (Hermit) |
on Sep 19, 2003 at 02:13 UTC ( [id://292559]=note: print w/replies, xml ) | Need Help?? |
well, this looks like right output: ($a,$b)=@ARGV;for($y=9;$y>0;$y--){$c=abs$b-$y;print$/,map{$d=abs$a-$_;$c>$d?$c:$d}(1..9)} without cheating it's a few characters longer.
In Section
Seekers of Perl Wisdom
|
|