Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^3: Short quines

by mr_mischief (Monsignor)
on Jan 29, 2008 at 15:53 UTC ( [id://664918]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Short quines
in thread Short quines

That's my first impression of it, too, but I didn't know exactly where others would draw the line. I think the line is at any form of accessing the program text or a parsed representation of it directly. Reading the DATA section clearly doesn't do that.

Part of the challenge of producing a quine in many languages is the careful formatting and escaping required. Reading a special section of data that can look like code without consequence makes that much easier. Perl's always been good at making things easier though (or rather, to give proper credit, Larry and the Porters have been good at it). That your language makes something easier (without going to the point of having a built-in quine() subroutine, anyway) probably shouldn't be considered cheating.

Replies are listed 'Best First'.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (2)
As of 2024-04-25 20:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found