<?xml version="1.0" encoding="windows-1252"?>
<node id="85399" title="Best 8 Character Obfuscation (Golf-ish)" created="2001-06-04 03:05:44" updated="2005-08-13 01:15:43">
<type id="120">
perlmeditation</type>
<author id="47599">
mr.nick</author>
<data>
<field name="doctext">
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
&lt;p&gt;
&lt;ul&gt;
&lt;li&gt;Maximum of eight (8) spaces
&lt;li&gt;You can only use the following characters
&lt;br&gt;
&lt;dd&gt;&lt;code&gt;. ' ! : -&lt;/code&gt; (which count for 1/2 space)
&lt;br&gt;
&lt;dd&gt;&lt;code&gt;&amp; ? $ = # ' + / *&lt;/code&gt; (which count for 1 space)
&lt;br&gt;
&lt;dd&gt;&lt;code&gt;"&lt;/code&gt; (2 spaces)
&lt;br&gt;
&lt;dd&gt;&lt;code&gt;A-Z0-9&lt;/code&gt; (1 space)
&lt;/ul&gt;
&lt;p&gt;
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 :)
&lt;p&gt;
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 &lt;code&gt;s!.+!JAPH!&lt;/code&gt;. So I appeal (more out of interest of SEEING as opposed to actually USING it) to my fellow monks for some input.
&lt;p&gt;
Thank you for your time! :)</field>
</data>
</node>
