in reply to Programs that write programs

Sure. For example a "quine" is a program that produces its own source code as output. Running that output again as a Perl program of course yields the same output again.

There are also nice multi-language quines, for example Perl code that output shell code, which then again produces the original Perl code etc. See for example and

A less obscure example is a compiler: A compiler produces working code, and if it is written in the language it compiles, then it can compile itself, and the result can again compile itself etc. This is called "bootstrapping".

Another example would be Acme::EyeDrops, which you can probably use on itself.

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.