Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

cgi quine

by jonadab (Parson)
on Mar 09, 2003 at 13: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
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 making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2019-06-26 07:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Is there a future for codeless software?



    Results (109 votes). Check out past polls.

    Notices?