Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^2: 2014 Code Golf Challenge

by BrowserUk (Patriarch)
on Jan 03, 2014 at 00:15 UTC ( [id://1069052]=note: print w/replies, xml ) Need Help??


in reply to Re: 2014 Code Golf Challenge
in thread 2014 Code Golf Challenge

Care to explain that one? And more interestingly; how you discovered it? )

(I thought I was pretty oh-fay with un pack, but that ...? )

Replies are listed 'Best First'.
Re^3: 2014 Code Golf Challenge
by ambrus (Abbot) on Jan 03, 2014 at 17:08 UTC

    unpack "C", "f" or unpack "c", "f" or unpack "U", "f" or ord "f" all give the character code of "f", which is 102. unpack "H", "A" gives "4", and you can replace the "A" with any other letter between "@" and "O". Thus, unpack "HC", "Af" returns ("4", 102). If you concatenate and reverse that list, you get "2014". From there, I just had to modify the strings until it gave something meaningful instead of random letters.

Log In?
Username:
Password:

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

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

    No recent polls found