Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Quines

by MrNobo1024 (Hermit)
on Feb 08, 2001 at 04:31 UTC ( [id://57100]=note: print w/replies, xml ) Need Help??


in reply to Obfuscation: program seeing own source

I think what you're looking for is a quine (a program that displays its own source code without accessing it). Here's an example:
$q=q(print"\$q=q($q);$q";);print"\$q=q($q);$q";

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (2)
As of 2024-04-26 02:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found