Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Converter

by b-funk (Sexton)
on Dec 11, 2003 at 03:55 UTC ( #313964=obfuscated: print w/replies, xml ) Need Help??

It's actually somewhat robust...sort of. It could be shorter, but at the cost of an increase in clarity (in my opinion).
#!/usr/bin/perl -lp $?*=!$$?%,:$s;s.[g-z]|\W..gi;$;=(chomp,length);for(split//){s} (\w)}\U$1}gx;$_=+(ord)-55if(ord>$=);$?+=(16**--$;)*$_}s;$_;$?;
Brandan L.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: obfuscated [id://313964]
Approved by Mr. Muskrat
help
Chatterbox?
[Discipulus]: ah! ++choroba for seek $FH, $. = 0, 0;
[Discipulus]: anyway I lost 15 minutes with lc $str used by me instead of $str = lc $str

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2017-06-26 11:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (577 votes). Check out past polls.