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

One-liner japh

by ambrus (Abbot)
on Oct 31, 2003 at 08:12 UTC ( #303508=obfuscated: print w/replies, xml ) Need Help??

This one-liner combines the power of bash and perl. It's not suitable as a signature however, as it's not quite portable.

eval perl{\ \''-lne/"(.*','.*)".(...)/x&&%{uc$2}&&print$1'\',\"doc,faq +1\|\"}

Update: you have to run this line in bash, and it will run perl, in case you haven't figured it out.

Update: At least four other people has found the same obfu idea. see Just Another JAPH, Opere Citato Japh, JAPF and Perl FAQ.

Update 2008 feb 10: The release of perl 5.10.0 has broken this japh. If you have a perl 5.8.8 or earlier version, use it by changing PATH.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: obfuscated [id://303508]
Approved by dbwiz
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (8)
As of 2016-10-22 18:15 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (297 votes). Check out past polls.