Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

One-liner japh

by ambrus (Abbot)
on Oct 31, 2003 at 08:12 UTC ( [id://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?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
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?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2024-04-20 04:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found