Program Generation
Almost from the time people first figured out that they could write programs, they started writing programs that write other programs. We often call these program generators. (If you’re a history buff, you might know that RPG stood for Report Program Generator long before it stood for Role-Playing Game.) Nowadays they’d probably be called “program factories”, but the generator people got there first, so they got to name it.
Now anyone who has written a program generator knows that it can make your eyes go crossed even when you’re wide awake. The problem is simply that much of your program’s data looks like real code, but it isn’t (at least not yet). The same text file contains both stuff that does something and similar-looking stuff that doesn’t. Perl has various features that make it easy to mix Perl together with other languages, textually speaking.
(Of course, these features also make it easier to write Perl in Perl, but that’s rather to be expected by now, we should think.)
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access