Re: LED reader solutions

Eirik Berg Hanssen <[email protected]>
Newsgroups gmane.comp.lang.perl.golf
Message-ID <[email protected]>
Juho Snellman <[email protected]> writes:

> The solution: 
> 
> #!perl -lp
> s\#\++vec$a,$./2^2*pos,1\ge}{$_=$a;y/\x14\x10^\x1a\x198<\x15\x1c\x18/0-9/

  Very nice.  I should never have thought of it.  However, now that
you have, I cannot resist improving on it:

#!perl -lp
s\#\++vec$a,$./2^pos,2\ge}{$_=$a;y/\xff\x92\xfb\xe8\x98\xac\xbc\x97\xfc\xec/0-9/

  [ If it looks longer, that is just because there are more hex chars ... ]

  54 strokes.  Do I hear a "d'oh!"?  :-)


Eirik
-- 
All bridge hands are equally likely, but some are more equally likely
than others.
                -- Alan Truscott
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.