Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Golf: Seven segment display

by jffry (Hermit)
on Jan 23, 2012 at 23:22 UTC ( [id://949544]=note: print w/replies, xml ) Need Help??


in reply to Golf: Seven segment display

The only problem is that this is not "9"

_ |_| _|

This is:

_ |_| |

Otherwise, the old trick of "59009" upside down doesn't work anymore.

Replies are listed 'Best First'.
Re^2: Golf: Seven segment display
by brx (Pilgrim) on Jan 25, 2012 at 09:41 UTC
    sub w{for$;(1005,924745596,341831021){say map{$;>>$_&1?/../?'|':_:$"}m +ap{$_+20,$_,$_+10}$_[0]=~/./g}} w("59009");
    output:
    _ _ _ _ _ |_ |_|| || ||_| _| ||_||_| |

      /me flips laptop upside down, laughs like Beavis & Butthead.

Log In?
Username:
Password:

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

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

    No recent polls found