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
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
# 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