Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: ASCII Pattern - Golf

by cLive ;-) (Prior)
on Sep 19, 2003 at 02:31 UTC ( [id://292562]=note: print w/replies, xml ) Need Help??


in reply to ASCII Pattern - Golf

Here's an amended version of your attempt that weighs in at 9 characters less:
#!/usr/bin/perl @q=@ARGV;for($y=9;$y--;){print abs$q[1]-$y>abs$q[0]-$_?abs$q[1]-$y:abs +($q[0]-$_)for(1..9);print$/}

.02

cLive ;-)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://292562]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (5)
As of 2024-04-23 20:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found