in reply to Re: Re: Self-printing program
in thread Self-printing program
The simple way to add arbitrary code to a (recursion-theorem-based) quine is like so:
Note that, when doing it this way (as I mentioned), you end up having to duplicate the code (once to print it, and once to do it).$body = ' $body = %c%s%c; foo(); bar("baz"); printf($body,39,$body,39); '; foo(); bar("baz"); printf($body,39,$body,39);
------------ :Wq Not an editor command: Wq
|
|---|