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

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
Okay, I have an interesting task here if you are interested :) What is the most clever obfuscation/golf can you write with the following simple rules

  • Maximum of eight (8) spaces
  • You can only use the following characters
    . ' ! : - (which count for 1/2 space)
    & ? $ = # ' + / * (which count for 1 space)
    " (2 spaces)
    A-Z0-9 (1 space)

Now, if this sounds suspiciously like the restrictions placed on you by the Department of Motor Vehicles for a custom plate, well, yes, (ahem) you would be correct :)

I've been trying to think of something clever I can fit into 8 spaces (which, if 1/2 space chars are abused well enough, I expect can be as long as 12 characters). Problem is, the muse of cleverness isn't with me; the best I can do so far is a simple regex like s!.+!JAPH!. So I appeal (more out of interest of SEEING as opposed to actually USING it) to my fellow monks for some input.

Thank you for your time! :)


In reply to Best 8 Character Obfuscation (Golf-ish) by mr.nick

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (7)
As of 2024-04-19 16:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found