10.07.2015 Views

Beginning Web Development With Perl : From Novice to ... - Nabo

Beginning Web Development With Perl : From Novice to ... - Nabo

Beginning Web Development With Perl : From Novice to ... - Nabo

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

230CHAPTER 11 ■ DEVELOPMENT WITH MOD_PERLIn addition, consider exactly what you’re doing with mod_perl programs when workingwith the Apache request/response lifecycle and the Apache server itself. All of these things canintroduce risk in<strong>to</strong> programs if they are executed maliciously. For instance, writing <strong>to</strong> log filesfrom a mod_perl program could result in an attacker filling up a disk with spurious log entries.Finally, mod_perl inherits all of the risks present in CGI programs, such as possible attacksif input from forms isn’t properly sanitized. Refer <strong>to</strong> the earlier chapters on CGI programming(Chapters 1 through 4) for more information about those security considerations.SummaryThis chapter examined development with mod_perl. You learned about variable scoping withmod_perl, Apache::Registry, and the Apache request object. To appreciate the full power ofmod_perl, I highly recommend working with it <strong>to</strong> perform more advanced programming and<strong>to</strong> increase the performance of your programs. The benefits of mod_perl for high-performanceweb sites are immense.Looking ahead, the next chapter will shift gears once again and discuss templating with<strong>Perl</strong>. By using templates, you can increase your web design productivity. As you’ll see, <strong>Perl</strong>offers more than a few options for templating.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!