Re: Best 8 Character Obfuscation (Golf-ish)
by MeowChow (Vicar) on Jun 04, 2001 at 08:22 UTC
|
A Perl-to-Java converter:
perl -pe "s-\b \b-.-g" FILENAME
update: And here's a cute 'lil bug i just discovered:
perl -pe "s--s:()::g-e" FILENAME
MeowChow
s aamecha.s a..a\u$&owag.print | [reply] [Watch: Dir/Any] [d/l] [select] |
|
Why the '()'s? Without them, it seems to work. (But then there's no bug. I guess that's your point.)
  p
| [reply] [Watch: Dir/Any] [d/l] |
Re: Best 8 Character Obfuscation (Golf-ish)
by Zaxo (Archbishop) on Jun 04, 2001 at 17:19 UTC
|
The possibilities get richer if you consider mere expressions and puns on them.
$$==0 for 'swapper' (a little old-fashoned, that)
$?!=0 for 'baby on board'
Regex matches can make an assertion...
/VIP/
...or even tell a sad story.
/DWI/
$&=1/4
/APB/
$!!=0
/DOA/
After Compline, Zaxo
| [reply] [Watch: Dir/Any] [d/l] [select] |
|
Having the word "DWI" on your license plate is a bit like walking around a hunting grounds with a pair of antlers strapped to your head :-)
MeowChow
s aamecha.s a..a\u$&owag.print | [reply] [Watch: Dir/Any] |
|
Can you explain for non-americans what it is with DWI. I think
it closes a large namespace.
| [reply] [Watch: Dir/Any] |
|
Re: Best 8 Character Obfuscation (Golf-ish)
by srawls (Friar) on Jun 04, 2001 at 22:17 UTC
|
Here's one that fits exactly 8 chars (11 real chars):
++$...$..$.
It evaluates to 1 .. 11. (To see why, go to this node.)
The 15 year old, freshman programmer,
Stephen Rawls | [reply] [Watch: Dir/Any] [d/l] |
|
That's great! Can you imagine a police officer trying to read your tags across a radio?? :)
| [reply] [Watch: Dir/Any] |
|
Yeah, and can you imagine an officer asking a witness, "did you get the tag? plus dollar dot dot what now?"
Seriously though, I can just see people asking you about your plate everywhere you go; all the more reason to get it : )
The 15 year old, freshman programmer,
Stephen Rawls
| [reply] [Watch: Dir/Any] |
Re: Best 8 Character Obfuscation (Golf-ish)
by John M. Dlugosz (Monsignor) on Jun 04, 2001 at 19:08 UTC
|
sub foo
++$$
my $car
| [reply] [Watch: Dir/Any] [d/l] |
Re (tilly) 1: Best 8 Character Obfuscation (Golf-ish)
by tilly (Archbishop) on Jun 04, 2001 at 16:04 UTC
|
I can't even manage a good joke in 8 characters. The best
I could manage is that attempts to speak Python will not
be understood:
s:yt:&s:e
(I know, I couldn't even manage a good job at *that* joke.) | [reply] [Watch: Dir/Any] [d/l] |
Re: Best 8 Character Obfuscation (Golf-ish)
by petral (Curate) on Jun 04, 2001 at 16:32 UTC
|
The absence of the lower-case makes this particularly difficult. $ARGV? $#INC? *SIG?!?
  p
| [reply] [Watch: Dir/Any] [d/l] |
Re: Best 8 Character Obfuscation (Golf-ish)
by the_slycer (Chaplain) on Jun 04, 2001 at 18:07 UTC
|
Only a perlmonk would get it:
4=31832
| [reply] [Watch: Dir/Any] |
Re: Best 8 Character Obfuscation (Golf-ish)
by da (Friar) on Jun 04, 2001 at 22:27 UTC
|
| [reply] [Watch: Dir/Any] [d/l] [select] |
Re: Best 8 Character Obfuscation (Golf-ish)
by suaveant (Parson) on Sep 10, 2001 at 23:51 UTC
|
#!perl -wT
that'd be a good license plate :)
update
I assume you need real letters, too but ...---... would be a funny plate...
- Ant
- Some of my best work - Fish Dinner
| [reply] [Watch: Dir/Any] |
Re: Best 8 Character Obfuscation (Golf-ish)
by ZZamboni (Curate) on Jun 05, 2001 at 09:59 UTC
|
Please let us know what you end up with! I would be particularly
curious to see if the DMV will accept a symbols-only
plate (like the ++$...$..$. suggestion). I have a
feeling they would reject it.
When I got my new car in January, I wanted to get a "PERLMNK"
plate (only 7 characters plus a space in Indiana), but when I
went to get the plates, I found out that they only issue
vanity plates once a year: I would have to place the order and
wait until next year, and I'm moving out of the state this
year. Agh.
--ZZamboni
| [reply] [Watch: Dir/Any] |