Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
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 making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2015-07-04 05:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (57 votes), past polls