Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Sounds like another Japh

by osfameron (Hermit)
on Sep 15, 2000 at 15:57 UTC ( [id://32655]=obfuscated: print w/replies, xml ) Need Help??

use strict;use Text::Soundex; my%w=map{((soundex$_),$_)}qw( Yet another JAPH for the obfuscated code section for all you Perl monks. Just a simple hack (but then I'm a simple hacker really). Comments welcome! (warnings expunged as per Tilly's suggestion) );print map{"$w{soundex$_} "}(qw( jossed a-needier poorly hooker ));
UPDATE: And now without the variable %w...
use strict;use Text::Soundex; print map{${{map{((soundex$_),$_)}qw( Yet another JAPH for the obfuscated code section for all you Perl monks. Just a simple hack (but then I'm a simple hacker really). Updated version without warnings and with anonymous hash. Comments welcome! )}}{soundex$_}." "}(qw( jossed a-needier poorly hooker ));
Cheerio!
Osfameron

Replies are listed 'Best First'.
RE: Sounds like another Japh
by Nooks (Monk) on Sep 16, 2000 at 17:10 UTC

    That's pretty cool. I do so enjoy obfuscated code that teaches me something about Perl when I understand it, as opposed to stuff that's merely hard to read, or has all the whitespace taken out, or such (not that there's a whole lot of that about, mind).

RE (tilly) 1: Sounds like another Japh
by tilly (Archbishop) on Sep 15, 2000 at 17:19 UTC
    Please don't use warnings; in obfuscated code. People are not supposed to figure it out, and it won't run in 5.005 (widely used, and many do not consider 5.6.0 truly production quality).

    Thanks.

    Ben

    PS: Cute. :-)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2024-04-19 04:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found