Beginning Perl Web Development (eBook)

From Novice to Professional

(Autor)

eBook Download: PDF
2006 | 1st ed.
XX, 376 Seiten
Apress (Verlag)
978-1-4302-0089-5 (ISBN)

Lese- und Medienproben

Beginning Perl Web Development - Steve Suehring
Systemvoraussetzungen
35,30 inkl. MwSt
  • Download sofort lieferbar
  • Zahlungsarten anzeigen
* 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.
Beginning Perl Web Development: From Novice to Professional introduces you to the world of Perl Internet application development. This book tackles all areas crucial to developing your first web applications and includes a powerful combination of real-world examples coupled with advice. Topics range from serving and consuming RSS feeds, to monitoring Internet servers, to interfacing with e-mail. You’ll learn how to use Perl with ancillary packages like Mason and Nagios.Though not version-specific, this book is an ideal read if you have had some grounding in Perl basics and now want to move into the world of web application development. Author Steve Suehring emphasizes the security implications of Perl, drawing on years of experience teaching readers how to think safe, avoid common pitfalls, and produce well-planned, secure code.

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 Glance 4
Contents 6
About the Author 14
About the Technical Reviewer 16
Acknowledgments 18
Introduction 20
PART 1 CGI Development with Perl 22
CHAPTER 1 The CGI Module 24
An Overview of CGI 24
What You Need for This Chapter 25
Hello World, CGI Style 26
A Closer Look at the CGI.pm Functions 32
Environment Variables 44
Interaction with the System 47
Debugging and Troubleshooting 48
Security Considerations with CGI Programs 52
Summary 55
CHAPTER 2 Popular CGI Modules 56
Integration with Other Modules 56
Interaction Based on Environment Variables 66
Security Considerations with CGI Modules 68
Summary 68
CHAPTER 3 Databases and Perl 70
Interacting with a Database 70
Using SQL Databases with the DBI 76
Interacting with the Web 86
Troubleshooting Database Interaction 91
Security Considerations with Data Access 91
Summary 92
CHAPTER 4 System Interaction 94
Perl Scripts and the Operating System 94
Working with Filehandles 94
Uploading Files with CGI.pm 98
Working with System Processes 104
Security Considerations with System Interaction 106
Summary 107
PART 2 Internet Interaction with LWP and Net::Tools 108
CHAPTER 5 LWP Modules 110
Getting Started with the LWP 110
HTTP from 29,999 Feet 111
Keeping It Simple with LWP::Simple 113
Getting More Functionality with LWP::UserAgent 117
Using the LWP 118
Removing HTML Tags from a Page 124
Security Considerations with the LWP 125
Summary 126
CHAPTER 6 Net:: Tools 128
Checking E-Mail with Net::POP3 128
Checking E-Mail with Mail::Box 138
Sending E-Mail with SMTP 139
Checking DNS with Net::DNS 146
Sending a Ping with Net::Ping 149
Security Considerations with Net:: Modules 154
Summary 154
PART 3 XML and RSS 156
CHAPTER 7 SOAP-Based Web Services 158
A Quick SOAP Primer 158
SOAP Meets Perl: SOAP::Lite 160
Creating a SOAP Listener 167
Consuming a SOAP Web Service 169
Security Considerations with SOAP Web Services 173
Summary 173
CHAPTER 8 Perl and RSS 174
RSS: Versioning Fun 174
Reading RSS with XML::RSS 175
Writing RSS with XML::RSS 180
Security Considerations with RSS 183
Summary 184
CHAPTER 9 XML Parsing with Perl 186
XML Parsing Methods 186
XML Parsing Considerations 187
Parsing XML with XML::Simple 187
Parsing XML with XML::SAX 193
Using Tree-Based Parsing 200
Security Considerations with XML Parsing 201
Summary 201
PART 4 Performance Enhancement with mod_perl 202
CHAPTER 10 Apache and mod_perl 204
How Apache Handles Requests 204
mod_cgi vs. mod_perl 208
Apache::Registry vs. Apache::PerlRun 210
mod_perl Installation 214
From mod_cgi to mod_perl 220
Security Considerations with mod_perl 221
Summary 221
CHAPTER 11 Development with mod_perl 222
Thinking in mod_perl 222
Preloading Perl Modules 228
Working with the Apache Request Object 230
Working with the Apache Server 247
Security Considerations with mod_perl, Revisited 250
Summary 251
PART 5 Creating Web Templates 252
CHAPTER 12 The Template Toolkit 254
Perl and Templates 254
Template Toolkit Introduction 255
Template Toolkit Syntax 261
Building a Web Site with Template::Toolkit 278
Security Considerations 283
Summary 283
CHAPTER 13 Perl Web Sites with Mason 284
Introducing Mason 284
Installing Mason 286
Mason Syntax 290
Building a Web Site with Mason 299
Security Considerations with Mason 302
Summary 302
APPENDIX Perl Basics 304
Our First Perl Program 304
Types of Data 306
Operators 314
Variables 327
Variable Interpolation 334
The if Statement 336
Looping Constructs 347
The while Loop 347
Loop Control Constructs 354
Summary 359
Index 360

Erscheint lt. Verlag 22.11.2006
Zusatzinfo XX, 376 p.
Verlagsort Berkeley
Sprache englisch
Themenwelt Mathematik / Informatik Informatik Programmiersprachen / -werkzeuge
Mathematik / Informatik Informatik Web / Internet
Schlagworte Databases • Development • Mason • Perl • Templates • web applications • Web Services • XML
ISBN-10 1-4302-0089-8 / 1430200898
ISBN-13 978-1-4302-0089-5 / 9781430200895
Haben Sie eine Frage zum Produkt?
PDFPDF (Wasserzeichen)
Größe: 2,8 MB

DRM: Digitales Wasserzeichen
Dieses eBook enthält ein digitales Wasser­zeichen und ist damit für Sie persona­lisiert. Bei einer missbräuch­lichen Weiter­gabe des eBooks an Dritte ist eine Rück­ver­folgung an die Quelle möglich.

Dateiformat: PDF (Portable Document Format)
Mit einem festen Seiten­layout eignet sich die PDF besonders für Fach­bücher mit Spalten, Tabellen und Abbild­ungen. Eine PDF kann auf fast allen Geräten ange­zeigt werden, ist aber für kleine Displays (Smart­phone, eReader) nur einge­schränkt geeignet.

Systemvoraussetzungen:
PC/Mac: Mit einem PC oder Mac können Sie dieses eBook lesen. Sie benötigen dafür einen PDF-Viewer - z.B. den Adobe Reader oder Adobe Digital Editions.
eReader: Dieses eBook kann mit (fast) allen eBook-Readern gelesen werden. Mit dem amazon-Kindle ist es aber nicht kompatibel.
Smartphone/Tablet: Egal ob Apple oder Android, dieses eBook können Sie lesen. Sie benötigen dafür einen PDF-Viewer - z.B. die kostenlose Adobe Digital Editions-App.

Zusätzliches Feature: Online Lesen
Dieses eBook können Sie zusätzlich zum Download auch online im Webbrowser lesen.

Buying eBooks from abroad
For tax law reasons we can sell eBooks just within Germany and Switzerland. Regrettably we cannot fulfill eBook-orders from other countries.

Mehr entdecken
aus dem Bereich
Das Handbuch für Webentwickler

von Philip Ackermann

eBook Download (2023)
Rheinwerk Computing (Verlag)
49,90
Das umfassende Handbuch

von Johannes Ernesti; Peter Kaiser

eBook Download (2023)
Rheinwerk Computing (Verlag)
44,90