Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

OCR2

by o0lit3 (Friar)
on Aug 05, 2004 at 20:07 UTC ( [id://380368]=obfuscated: print w/replies, xml ) Need Help??

Many thanks to cLive (c.f., OCR? :)) and abigail for the inspiration, and to ton and the other aliens at terje2's minigolf for the ofuscation.
/#/*s/\n/ /?$@[$@++%5].=$_:0 for<DATA>; $E++, s/..../(1e2.$E|$&)%9/eg, $Q^=$_ for join(qq/\n/,@@)=~/.+/g;$_=$Q;y/=<694:38>70/0-9./+print eval __DATA__ ### # # # # ### # # ### # # ### # # # # # # # # # # # # # ### # # # # # ### # # ### # # # # # # # # # # # # # # # # # # # # # ### # # # ### # ### ### ### ### # # ### # # # # # # # # # # # # # # ### ### ### ### # # # # # # # # # # # # # # # # # # # ### ### # ### ### # # # ### # # # # # # # ### # ### # # # ### # # # # # # # # # # # # # # # # # # # # # # # ### # # # ### # # # # # # ### # # # # # # # # # # # # # # # # # ### # # ### # # # ### # # # # # # ### ### ### ### # ### # # # # # # # # # # # # # # # # # # # ### ### ### # # # # # # # # ### # # # # # # # # # # # # # ### ### # ### ### # # ### # # # # # # # ### ### ### ### ### ### ### ### ### ### # # # # # # # # # # # # # # # # # # # ### ### ### # ### ### # ### ### # # # # # # # # # # # # # # ### ### # ### ### # # ### # ### # # ### ### # # ### ### # ### # # # # # # ### # # # # # # # # # # # # # # # # # # # # # # # # # ### # # # # # # # # # # # # # # # # # # ### # # # ### # # # # # # # ###

Replies are listed 'Best First'.
Re: OCR2
by ambrus (Abbot) on Aug 06, 2004 at 14:19 UTC

    At first this did not work for me, it only gave 4 warnings but no output. Than I've removed the c-m line endings and suddenly it worked. (v5.8.2 built for i686-linux)

    Update:
    It seems that you are using a perfect hash function into 16 buckets for recognizing the characters. Very smart.

      Yes, ambrus, in regards to your hidden update, you are correct, but I must give credit to my friend Ton for that. This was one of the first golfs I attempted, and I've been hooked ever since. At the time I really didn't know what I was doing, but Ton's solution is one of the more elegant. You can see several other algorithms at terje's minigolf.
      Update: Apologies for the above node being posted anonymously as I was not yet logged in.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2024-04-24 03:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found