: Steve Suehring
: Beginning Perl Web Development From Novice to Professional
: Apress
: 9781430200895
: 1
: CHF 32.10
:
: Informatik
: English
: 376
: Wasserzeichen/DRM
: PC/MAC/eReader/Tablet
: PDF
* Avoids proof-of-concept examples in favor of teaching readers how to produce well-coded secure CGI applications that will stand up to the demands of being placed into the potentially hostile environment of the Internet.

* Takes a holistic approach to web application development and includes instruction on how to use ancillary programs such as Mason and Nagios that the reader will need to be familiar with in order to progress.

* The book's comprehensive scope tackles all the areas of Perl web application development the reader is likely to need in creating their first web applications.



Steve Suehring is the security editor for LinuxWorld Magazine. He has written articles for Linux Magazine and authored a book titled MySQL. Suehring has also edited a number of titles on Linux and open source software. He has been working with closed and open source software for a number of years.
Contents at a Glance4
Contents6
About the Author14
About the Technical Reviewer16
Acknowledgments18
Introduction20
PART 1 CGI Development with Perl22
CHAPTER 1 The CGI Module24
An Overview of CGI24
What You Need for This Chapter25
Hello World, CGI Style26
A Closer Look at the CGI.pm Functions32
Environment Variables44
Interaction with the System47
Debugging and Troubleshooting48
Security Considerations with CGI Programs52
Summary55
CHAPTER 2 Popular CGI Modules56
Integration with Other Modules56
Interaction Based on Environment Variables66
Security Considerations with CGI Modules68
Summary68
CHAPTER 3 Databases and Perl70
Interacting with a Database70
Using SQL Databases with the DBI76
Interacting with the Web86
Troubleshooting Database Interaction91
Security Considerations with Data Access91
Summary92
CHAPTER 4 System Interaction94
Perl Scripts and the Operating System94
Working with Filehandles94
Uploading Files with CGI.pm98
Working with System Processes104
Security Considerations with System Interaction106
Summary107
PART 2 Internet Interaction with LWP and Net::Tools108
CHAPTER 5 LWP Modules110
Getting Started with the LWP110
HTTP from 29,999 Feet111
Keeping It Simple with LWP::Simple113
Getting More Functionality with LWP::UserAgent117
Using the LWP118
Removing HTML Tags from a Page124
Security Considerations with the LWP125
Summary126
CHAPTER 6 Net:: Tools128
Checking E-Mail with Net::POP3128
Checking E-Mail with Mail::Box138
Sending E-Mail with SMTP139
Checking DNS with Net::DNS146
Sending a Ping with Net::Ping149
Security Considerations with Net:: Modules154
Summary154
PART 3 XML and RSS156
CHAPTER 7 SOAP-Based Web Services158
A Quick SOAP Primer158
SOAP Meets Perl: SOAP::Lite160
Creating a SOAP Listener167
Consuming a SOAP Web Service169
Security Considerations with SOAP Web Services173
Summary173
CHAPTER 8 Perl and RSS174
RSS: Versioning Fun174
Reading RSS with XML::RSS175
Writing RSS with XML::RSS180
Security Considerations with RSS183
Summary184
CHAPTER 9 XML Parsing with Perl186
XML Parsing Methods186
XML Parsing Considerations187
Parsing XML with XML::Simple187
Parsing XML with XML::SAX193
Using Tree-Based Parsing200
Security Considerations with XML Parsing201
Summary201
PART 4 Performance Enhancement with mod_perl202
CHAPTER 10 Apache and mod_perl204
How Apache Handles Requests204
mod_cgi vs. mod_perl208
Apache::Registry vs. Apache::PerlRun210
mod_perl Installation214
From mod_cgi to mod_perl220
Security Considerations with mod_perl221
Summary221
CHAPTER 11 Development with mod_perl222
Thinking in mod_perl222
Preloading Perl Modules228
Working with the Apache Request Object230
Working with the Apache Server247
Security Considerations with mod_perl, Revisited250
Summary251
PART 5 Creating Web Templates252
CHAPTER 12 The Template Toolkit254
Perl and Templates254
Template Toolkit Introduction255
Template Toolkit Syntax261
Building a Web Site with Template::Toolkit278
Security Considerations283
Summary283
CHAPTER 13 Perl Web Sites with Mason284
Introducing Mason284
Installing Mason286
Mason Syntax290
Building a Web Site with Mason299
Security Considerations with Mason302
Summary302
APPENDIX Perl Basics304
Our First Perl Program304
Types of Data306
Operators314
Variables327
Variable Interpolation334
The if Statement336
Looping Constructs347
The while Loop347
Loop Control Constructs354
Summary359
Index360