Practical mod_perl-CHAPTER 6:Coding with mod_perl in Mind

Tham khảo tài liệu 'practical mod_perl-chapter 6:coding with mod_perl in mind', công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | Page 217 Thursday November 18 2004 12 38 PM CHAPTER 6 Coding with mod_perl in Mind This is the most important chapter of this book. In this chapter we cover all the nuances the programmer should know when porting an existing CGI script to work under mod_perl or when writing one from scratch. This chapter s main goal is to teach the reader how to think in mod_perl. It involves showing most of the mod_perl peculiarities and possible traps the programmer might fall into. It also shows you some of the things that are impossible with vanilla CGI but easily done with mod_perl. Before You Start to Code There are three important things you need to know before you start your journey in a mod_perl world how to access mod_perl and related documentation and how to develop your Perl code when the strict and warnings modes are enabled. Accessing Documentation mod_perl doesn t tolerate sloppy programming. Although we re confident that you re a talented meticulously careful programmer whose programs run perfectly every time you still might want to tighten up some of your Perl programming practices. In this chapter we include discussions that rely on prior knowledge of some areas of Perl and we provide short refreshers where necessary. We assume that you can already program in Perl and that you are comfortable with finding Perl-related information in books and Perl documentation. There are many Perl books that you may find helpful. We list some of these in the reference sections at the end of each chapter. If you prefer the documentation that comes with Perl you can use either its online version start at http or http CPAN perl or the perldoc utility which provides access to the documentation installed on your system. 217 Page 218 Thursday November 18 2004 12 38 PM To find out what Perl manpages are available execute panic perldoc perl For example to find what functions Perl has and to learn about their usage execute panic

Không thể tạo bản xem trước, hãy bấm tải xuống
TỪ KHÓA LIÊN QUAN
TÀI LIỆU MỚI ĐĂNG
463    20    1    27-11-2024
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.