Why are Perl blocks broken up into single subroutines?
• 1.) It makes it easier to process the HTML tags between the Perl blocks – this gives you more control over what’s happening • 2.) If you compiled _everything_ to Perl, you would hold all of the HTML text in memory, and your Apache child processes would grow and grow… But often-accessed documents are still held in memory by your os disk cache, which is much more memory-efficient. • 3.) There is only so far that you can go with precompiling until you reach the point of diminishing returns. My guess is that converting dynamic tables and other HTML processing to Perl at this point in Embperl’s development would actually slow down operation.