We don't bite newbies here... much | |
PerlMonks |
Re^5: Golf: Seven segment displayby kikuchiyo (Hermit) |
on Jan 28, 2012 at 18:08 UTC ( [id://950523]=note: print w/replies, xml ) | Need Help?? |
I'd say the use of $' is less than obvious. Nice work btw. The shortest solution I know (not my own creation):
where '0123456789abcdef' is to be substituted with "\x09\x99\x90\x99\x99\x13\xBB\x75\x17\x55\x15\xB7\xB1\x15\xB5". When the \x codes are replaced with the actual characters, it comes out two characters shorter than the solution above. (Not very elegant, though.)
In Section
Seekers of Perl Wisdom
|
|