Beefy Boxes and Bandwidth Generously Provided by pair Networks DiBona
No such thing as a small change
 
PerlMonks  

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.

Comment on One-liner japh
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (8)
As of 2014-04-17 07:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (440 votes), past polls