3 ms·
When I'm writing programs for myself, sometimes I make the perl program write itself out as the config file with a config hash as the __data__. When the program
by windsurfer 17y ago
When I'm writing programs for myself, sometimes I make the perl program write itself out as the config file with a config hash as the __data__. When the program runs, it tests if the config file doesn't exist or is an older version of the program. I don't know if it has any real use, but it's fun to write :D
- eru 17y agoDo you cheat (i.e. reading back the source file), or do you write real quines?
- windsurfer 17y agoI read back the source file so it still contains the comments.
- eru 17y agoReal quines can contain comments, too.