O'Reilly logo

Perl and Apache: Your visual blueprint for developing dynamic Web content by Adam McDaniel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 13. SEPARATING HTML CODE FROM PERL CODE

Understanding the Benefits of Separating HTML from Perl

By separating HTML from Perl, you can create HTML-only templates solely for displaying syntax, and leave Perl to handle the Web site logic. If you continue to embed HTML in Perl for complex HTML code, such as a table, understanding how that table is constructed could become very difficult. This is especially true if your table is generated from an external source, if the table has a syntax error, or if someone new is looking at the code. Suddenly, if the table needs to be changed, more effort is spent to understand how the table is built than it takes to apply the change. You can avoid this extra work if you separate the HTML layout from the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required