Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why are Perl blocks broken up into single subroutines?

blocks Broken Perl subroutines
0
Posted

Why are Perl blocks broken up into single subroutines?

0

• 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.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123