Think about Loose Coupling | |
PerlMonks |
Quine code with quinifyby Zaxo (Archbishop) |
on Oct 01, 2001 at 07:40 UTC ( [id://115789]=CUFP: print w/replies, xml ) | Need Help?? |
This small program, quinify, produces a quining wrapper around any suitably simple perl program. The quined version writes its source to STDERR so that STDOUT remains available to the wrapped code. The program to wrap can be provided by a list of files on the command line, 'Suitably simple' means
Here's the code: I use reverse to mung the source in data, mostly for visual effect. Any encryption-decryption scheme may be used, or none at all. This may look familiar. I used a previous version, with a mildly obfuscated __DATA__ section, to quine There can be only one! in But There Are Two! . After Compline,
Back to
Cool Uses for Perl
|
|