Re: [MacPerl] self-reproducing program

2003-06-18 Thread Richard Cook
Ronald J Kimball wrote: > > On Tue, Jun 17, 2003 at 09:49:39PM -0700, Richard Cook wrote: > > Anyone got examples of Perl programs that can output themselves? > > Such a program is called a quine. > > http://www.google.com/search?q=perl+quine > > Ronald I googled right after posting, and found

Re: [MacPerl] self-reproducing program

2003-06-18 Thread Ronald J Kimball
On Tue, Jun 17, 2003 at 09:49:39PM -0700, Richard Cook wrote: > Anyone got examples of Perl programs that can output themselves? Such a program is called a quine. http://www.google.com/search?q=perl+quine Ronald

Re: [MacPerl] self-reproducing program

2003-06-18 Thread Detlef Lindenthal
# Richard wrote: # Anyone got examples of Perl programs that can output themselves? # self-reproducing program seek DATA, 0, 0; print ; __DATA__ http://www.acm.org/classics/sep95/ -Richard ### This means that this script looks for the landmark __DATA__, ### but as "seek" rewinds