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.

Comment on Converter
Download Code

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?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2014-11-26 04:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (162 votes), past polls