Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

cgi quine

by jonadab (Parson)
on Mar 09, 2003 at 18:15 UTC ( #241590=obfuscated: print w/replies, xml ) Need Help??

Not really obfuscated per se, but it sure doesn't belong in any of the other categories, so... here is my first Perl quine that doesn't cheat by reading its own source code:


#!/usr/bin/perl $p='$q=chr(39);$t=chr(34);$h="Content-type: text/html\n\n<h" ."tml><head><title>$0</title></head><body><pre>#!/usr/bin/p" ."erl\n\$p=$q";$_=$p;$\="$q;eval\$p;</pre></body></html>$/"; s/&/&amp;/g;s/</&lt;/g;s/>/&gt;/g;s/$q/&#39;/g;s/$t/&quot;/g ;print$h.$_;';eval$p;

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (2)
As of 2022-10-07 22:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred way to holiday/vacation is:











    Results (30 votes). Check out past polls.

    Notices?