Ted Schuerzinger wrote: > Over on rec.puzzles on Usenet (<[EMAIL PROTECTED]>), somebody posted > a puzzle asking about using programming languages to print out a program's > own source code.
This is a classic programming challenge called "self-replicating program" or "quine". (Try Googling either of those.) The point of the challenge is that you are (sadly) *not* allowed to have the program simply read its own source code and echo it to output. The challenge is to write a program that will *programmatically* generate a new copy of itself. Quite a mind-bender if you think about it too much. The solution is easier in some languages than others. HTH David _______________________________________________ Perl-Win32-Users mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
