1. Trang chủ
  2. » Công Nghệ Thông Tin

Perl in a Nutshell phần 1 ppt

73 292 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 73
Dung lượng 6,48 MB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

Part V: DatabasesChapter 12: Databases and Perl Part VI: Network Programming Chapter 13: Sockets Chapter 14: Email Connectivity Chapter 15: Usenet News Chapter 16: FTP Chapter 17: The LW

Trang 1

By Ellen Siever, Stephen Spainhour & Nathan Patwardhan; ISBN 1-56592-286-7, 674 pages.

First Edition, December 1998.

(See the catalog page for this book.)

Search the text of Perl in a Nutshell

Index

Symbols | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z

Table of Contents

Preface

Part I: Getting Started

Chapter 1: Introduction to Perl

Chapter 2: Installing Perl

Part II: Language Basics

Chapter 3: The Perl Interpreter

Chapter 4: The Perl Language

Chapter 5: Function Reference

Chapter 6: Debugging

Part III: Modules

Chapter 7: Packages, Modules, and Objects

Chapter 8: Standard Modules

Part IV: CGI

Chapter 9: CGI Overview

Chapter 10: The CGI.pm Module

Chapter 11: Web Server Programming with mod_perl

http://www.crypto.nc1uw1aoi420d85w1sos.de/documents/oreilly/perl/perlnut/ (1 of 2) [2/7/2001 10:27:31 PM]

Trang 2

Part V: Databases

Chapter 12: Databases and Perl

Part VI: Network Programming

Chapter 13: Sockets

Chapter 14: Email Connectivity

Chapter 15: Usenet News

Chapter 16: FTP

Chapter 17: The LWP Library

Part VII: Perl/Tk

Chapter 18: Perl/Tk

Part VIII: Win32

Chapter 19: Win32 Modules and Extensions

Chapter 20: PerlScript

Copyright © 1999 O'Reilly & Associates All Rights Reserved.

http://www.crypto.nc1uw1aoi420d85w1sos.de/documents/oreilly/perl/perlnut/ (2 of 2) [2/7/2001 10:27:31 PM]

Trang 3

Full Text Search

Results report format:

Search for

Copyright © 1999 O'Reilly & Associates All Rights Reserved.

http://www.crypto.nc1uw1aoi420d85w1sos.de/documents/oreilly/perl/search/nsrch.htm [2/7/2001 10:27:34 PM]

Expanded

Reset search form

Trang 4

Search | Symbols | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z

Index: Symbols and Numbers

& (ampersand)

<> (angle brackets) : 4.10 Formats

< > line-input operator : 4.9 Filehandles

* (asterisk)

http://www.crypto.nc1uw1aoi420d85w1sos.de/documents/oreilly/perl/perlnut/index/idx_0.htm (1 of 7) [2/7/2001 10:27:36 PM]

Trang 5

multiplication operator : 4.5.3 Arithmetic Operators

@ (at sign)

\ (backslash)

! (bang)

{} (braces)

[] (brackets)

http://www.crypto.nc1uw1aoi420d85w1sos.de/documents/oreilly/perl/perlnut/index/idx_0.htm (2 of 7) [2/7/2001 10:27:36 PM]

Trang 6

regular expression metacharacter

4.6.2 Regular Expression Syntax4.6.4 Character Classes

^ (caret)

: (colon)

, (comma)

$ (dollar sign)

http://www.crypto.nc1uw1aoi420d85w1sos.de/documents/oreilly/perl/perlnut/index/idx_0.htm (3 of 7) [2/7/2001 10:27:36 PM]

Trang 7

$` variable : 4.4.5 Regular Expression Special Variables

http://www.crypto.nc1uw1aoi420d85w1sos.de/documents/oreilly/perl/perlnut/index/idx_0.htm (4 of 7) [2/7/2001 10:27:36 PM]

Trang 8

$^T variable : 4.4.1 Global Special Variables

(dot)

= (equal sign)

assignment operator

4.2.4 Variables4.5.6 Assignment Operators

=> operator, defining key/value pairs

4.2.4.2 Hashes4.5.11.3 Comma operator

# (hash mark)

- (hyphen)

-> (arrow) operator

4.5.1 The Arrow Operator7.4 Object Syntax

http://www.crypto.nc1uw1aoi420d85w1sos.de/documents/oreilly/perl/perlnut/index/idx_0.htm (5 of 7) [2/7/2001 10:27:36 PM]

Trang 9

dereferencing with : 4.8.2.1 Arrow dereferencing

() (parentheses)

% (percent sign)

+ (plus)

1 : 4.5.5 Autoincrement and Autodecrement

? (question mark)

; (semicolon)

/ (slash)

http://www.crypto.nc1uw1aoi420d85w1sos.de/documents/oreilly/perl/perlnut/index/idx_0.htm (6 of 7) [2/7/2001 10:27:36 PM]

Trang 10

/ / pattern match operator : 4.6 Regular Expressions

~ (tilde)

_ (underscore)

| (vertical bar)

Search | Symbols | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z

Copyright © 1999 O'Reilly & Associates, Inc All Rights Reserved

[ Library Home | Perl in a Nutshell | Learning Perl | Learning Perl on Win32 | Programming Perl | Advanced Perl Programming | Perl Cookbook ]

http://www.crypto.nc1uw1aoi420d85w1sos.de/documents/oreilly/perl/perlnut/index/idx_0.htm (7 of 7) [2/7/2001 10:27:36 PM]

Trang 11

Search | Symbols | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z

Index: A

abs()

accept()

IO::Socket module

Chapter 13, Reference: accept13.2 The IO::Socket Module13.2.2 Server-Side Sockets

Trang 12

account() (Net::Netrc) : Chapter 16, Reference: account

activate()

active index

Active Server Pages (ASP)

20 PerlScript

20.2 Server-Side PerlScript

add()

Mail::Send module

Chapter 14, Reference: add14.2.2 Better Header Control with Mail::Send

AddHeader()

http://www.crypto.nc1uw1aoi420d85w1sos.de/documents/oreilly/perl/perlnut/index/idx_a.htm (2 of 7) [2/7/2001 10:27:38 PM]

Trang 13

Response object, PerlScript : 20.2.2.3 Response methods

Alive() (Mail::POP3Client)

Chapter 14, Reference: Alive

14.2.8.5 Checking the connection

ampersand (&)

anchor index

-anchor option

http://www.crypto.nc1uw1aoi420d85w1sos.de/documents/oreilly/perl/perlnut/index/idx_a.htm (3 of 7) [2/7/2001 10:27:38 PM]

Trang 14

anchors in regular expressions : 4.6.5 Anchors

angle brackets <>

angle brackets (<>)

< > line-input operator : 4.9 Filehandles

anonymous FTP

2.1 The CPAN Architecture

16.1 The FTP Protocol

http://www.crypto.nc1uw1aoi420d85w1sos.de/documents/oreilly/perl/perlnut/index/idx_a.htm (4 of 7) [2/7/2001 10:27:38 PM]

Trang 15

appe() (Net::FTP) : Chapter 16, Reference: appe

append()

ARGV filehandle

4.4.3 Global Special Filehandles

4.9 Filehandles

arrays

4.2 Data Types and Variables

4.2.4.1 Arrays

arrow (->) operator

4.5.1 The Arrow Operator

7.4 Object Syntax

as_string()

http://www.crypto.nc1uw1aoi420d85w1sos.de/documents/oreilly/perl/perlnut/index/idx_a.htm (5 of 7) [2/7/2001 10:27:38 PM]

Trang 16

LWP modules

ASP (Active Server Pages)

20 PerlScript

20.2 Server-Side PerlScript

asterisk (*)

at sign (@)

http://www.crypto.nc1uw1aoi420d85w1sos.de/documents/oreilly/perl/perlnut/index/idx_a.htm (6 of 7) [2/7/2001 10:27:38 PM]

Trang 17

AutoCommit attribute (DBI) : 12.2.3 Database Handles and Statement Handles

Search | Symbols | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z

Copyright © 1999 O'Reilly & Associates, Inc All Rights Reserved

[ Library Home | Perl in a Nutshell | Learning Perl | Learning Perl on Win32 | Programming Perl | Advanced Perl Programming | Perl Cookbook ]

http://www.crypto.nc1uw1aoi420d85w1sos.de/documents/oreilly/perl/perlnut/index/idx_a.htm (7 of 7) [2/7/2001 10:27:38 PM]

Trang 18

Search | Symbols | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z

Index: B

backslash (\)

http://www.crypto.nc1uw1aoi420d85w1sos.de/documents/oreilly/perl/perlnut/index/idx_b.htm (1 of 4) [2/7/2001 10:27:40 PM]

Trang 19

creating references : 4.8.1 Creating References

bang (!)

base()

bbox()

http://www.crypto.nc1uw1aoi420d85w1sos.de/documents/oreilly/perl/perlnut/index/idx_b.htm (2 of 4) [2/7/2001 10:27:40 PM]

Trang 20

Binary() (Win32::Internet) : Chapter 19, Reference: Binary

binary Perl distributions

2.3.1 Installing on Unix

2.3.2.1 ActivePerl

Socket module

13.1 Built-in Socket Functions13.1.3 Server Connections

braces {}

http://www.crypto.nc1uw1aoi420d85w1sos.de/documents/oreilly/perl/perlnut/index/idx_b.htm (3 of 4) [2/7/2001 10:27:40 PM]

Trang 21

regular expression metacharacter : 4.6.2 Regular Expression Syntax

brackets []

regular expression metacharacter

4.6.2 Regular Expression Syntax4.6.4 Character Classes

bugs in Perl, reporting

6.6 The perlbug Program

Search | Symbols | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z

Copyright © 1999 O'Reilly & Associates, Inc All Rights Reserved

[ Library Home | Perl in a Nutshell | Learning Perl | Learning Perl on Win32 | Programming Perl | Advanced Perl Programming | Perl Cookbook ]

http://www.crypto.nc1uw1aoi420d85w1sos.de/documents/oreilly/perl/perlnut/index/idx_b.htm (4 of 4) [2/7/2001 10:27:40 PM]

Trang 22

Search | Symbols | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z

Index: C

Camel image

1.4.9 Books

Acknowledgments

caret (^)

http://www.crypto.nc1uw1aoi420d85w1sos.de/documents/oreilly/perl/perlnut/index/idx_c.htm (1 of 9) [2/7/2001 10:27:42 PM]

Trang 23

regular expression anchor : 4.6.5 Anchors

CGI.pm module

9 CGI Overview

10 The CGI.pm Module

http://www.crypto.nc1uw1aoi420d85w1sos.de/documents/oreilly/perl/perlnut/index/idx_c.htm (2 of 9) [2/7/2001 10:27:42 PM]

Trang 24

JavaScript features with : 10.5 Using JavaScript Features

-class option

Clear()

http://www.crypto.nc1uw1aoi420d85w1sos.de/documents/oreilly/perl/perlnut/index/idx_c.htm (3 of 9) [2/7/2001 10:27:42 PM]

Trang 25

Close()

Mail::POP3Client module

Chapter 14, Reference: Close14.2.8.6 Explicitly opening and closing connections

collection objects

19.18.3 Win32::OLE::Enum

http://www.crypto.nc1uw1aoi420d85w1sos.de/documents/oreilly/perl/perlnut/index/idx_c.htm (4 of 9) [2/7/2001 10:27:42 PM]

Trang 26

20.2.1 The Request Object

colon (:)

-colormap option

comma (,)

command()

http://www.crypto.nc1uw1aoi420d85w1sos.de/documents/oreilly/perl/perlnut/index/idx_c.htm (5 of 9) [2/7/2001 10:27:42 PM]

Trang 27

comparison operators

4.5.4.1 Relational operators

4.5.4.2 Equality operators

Socket module

13.1 Built-in Socket Functions13.1.2 Client Connections

constructors

(see new())

7.3 Object-Oriented Perl

content()

http://www.crypto.nc1uw1aoi420d85w1sos.de/documents/oreilly/perl/perlnut/index/idx_c.htm (6 of 9) [2/7/2001 10:27:42 PM]

Trang 28

Content-type header : 9.1.2 Creating Virtual Documents

cookie()

LWP modules

cookies

8.28 CGI::Cookie

10.3 Maintaining State

coords()

Count()

Mail::POP3Client module

Chapter 14, Reference: Count14.2.8.1 Counting messages

CPAN.pm module

http://www.crypto.nc1uw1aoi420d85w1sos.de/documents/oreilly/perl/perlnut/index/idx_c.htm (7 of 9) [2/7/2001 10:27:42 PM]

Trang 29

2.4.4 Installing Modules with the CPAN Module8.35 CPAN

Create()

http://www.crypto.nc1uw1aoi420d85w1sos.de/documents/oreilly/perl/perlnut/index/idx_c.htm (8 of 9) [2/7/2001 10:27:42 PM]

Trang 30

Search | Symbols | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z

Copyright © 1999 O'Reilly & Associates, Inc All Rights Reserved

[ Library Home | Perl in a Nutshell | Learning Perl | Learning Perl on Win32 | Programming Perl | Advanced Perl Programming | Perl Cookbook ]

http://www.crypto.nc1uw1aoi420d85w1sos.de/documents/oreilly/perl/perlnut/index/idx_c.htm (9 of 9) [2/7/2001 10:27:42 PM]

Trang 31

Search | Symbols | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z

Index: D

http://www.crypto.nc1uw1aoi420d85w1sos.de/documents/oreilly/perl/perlnut/index/idx_d.htm (1 of 6) [2/7/2001 10:27:44 PM]

Trang 32

DataSendTimeout() (Win32::Internet) : Chapter 19, Reference: DataSendTimeout

date and time

dbmopen()

Chapter 5, Reference: dbmopen

12.1 DBM Databases and DBM Hashes

debug()

-d, -D options (perl)

3.2 Command-Line Options6.1 The Perl Debugger6.5 The Perl Profiler

http://www.crypto.nc1uw1aoi420d85w1sos.de/documents/oreilly/perl/perlnut/index/idx_d.htm (2 of 6) [2/7/2001 10:27:44 PM]

Trang 33

commands for : 6.2 Debugger Commands

Delete()

Mail::POP3Client module

Chapter 14, Reference: Delete14.2.8.4 Deleting and undeleting messages

http://www.crypto.nc1uw1aoi420d85w1sos.de/documents/oreilly/perl/perlnut/index/idx_d.htm (3 of 6) [2/7/2001 10:27:44 PM]

Trang 34

delete_content() (HTML::Parser) : Chapter 17, Reference: delete_content

dereferencing

4.8.2 Dereferencing

7.4 Object Syntax

deselect()

diamond < > operator : 4.9 Filehandles

die()

Chapter 5, Reference: die

4.9 Filehandles

directories

http://www.crypto.nc1uw1aoi420d85w1sos.de/documents/oreilly/perl/perlnut/index/idx_d.htm (4 of 6) [2/7/2001 10:27:44 PM]

Trang 35

do statement, conditional modifiers with : 4.3.1.4 Modifiers

documentation, Perl

2.5 Documentation

4.11 Pod

dot (.)

downloading

Perl modules source code

2.2 How Is CPAN Organized?

2.4 Getting and Installing Modules

http://www.crypto.nc1uw1aoi420d85w1sos.de/documents/oreilly/perl/perlnut/index/idx_d.htm (5 of 6) [2/7/2001 10:27:44 PM]

Trang 36

dump_results() (DBI) : Chapter 12, Reference: dump_results

dynamic scoping

4.2.6 Declarations and Scope

4.7.4 Private and Local Variables

Search | Symbols | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z

Copyright © 1999 O'Reilly & Associates, Inc All Rights Reserved

[ Library Home | Perl in a Nutshell | Learning Perl | Learning Perl on Win32 | Programming Perl | Advanced Perl Programming | Perl Cookbook ]

http://www.crypto.nc1uw1aoi420d85w1sos.de/documents/oreilly/perl/perlnut/index/idx_d.htm (6 of 6) [2/7/2001 10:27:44 PM]

Trang 37

Search | Symbols | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z

Index: E

Mail modules

14 Email Connectivity14.2 The Mail Modules

http://www.crypto.nc1uw1aoi420d85w1sos.de/documents/oreilly/perl/perlnut/index/idx_e.htm (1 of 5) [2/7/2001 10:27:46 PM]

Trang 38

embedding scripts in messages : 3.2 Command-Line Options

end index

entrycget()

entryconfigure()

http://www.crypto.nc1uw1aoi420d85w1sos.de/documents/oreilly/perl/perlnut/index/idx_e.htm (2 of 5) [2/7/2001 10:27:46 PM]

Trang 39

HTML::Parser module : Chapter 17, Reference: eof

equal sign (=)

assignment operator

4.2.4 Variables4.5.6 Assignment Operators

=> operator, defining key/value pairs

4.2.4.2 Hashes4.5.11.3 Comma operator

http://www.crypto.nc1uw1aoi420d85w1sos.de/documents/oreilly/perl/perlnut/index/idx_e.htm (3 of 5) [2/7/2001 10:27:46 PM]

Trang 40

$EXECUTABLE_NAME ($^X) variable : 4.4.1 Global Special Variables

execute() (DBI)

Chapter 12, Reference: execute

12.2.3 Database Handles and Statement Handles

exit()

Chapter 5, Reference: exit

11.4 Running CGI Scripts with mod_perl

Expires property (response cookies)

20.2.2.1 Setting cookies

20.2.2.2 Response properties

extracting Perl source code

2.3.1 Installing on Unix

2.3.2.2 Standard Perl distribution

http://www.crypto.nc1uw1aoi420d85w1sos.de/documents/oreilly/perl/perlnut/index/idx_e.htm (4 of 5) [2/7/2001 10:27:46 PM]

Trang 41

ExtUtils::Manifest module : 8.55 ExtUtils::Manifest

Search | Symbols | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z

Copyright © 1999 O'Reilly & Associates, Inc All Rights Reserved

[ Library Home | Perl in a Nutshell | Learning Perl | Learning Perl on Win32 | Programming Perl | Advanced Perl Programming | Perl Cookbook ]

http://www.crypto.nc1uw1aoi420d85w1sos.de/documents/oreilly/perl/perlnut/index/idx_e.htm (5 of 5) [2/7/2001 10:27:46 PM]

Trang 42

Search | Symbols | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z

Index: F

http://www.crypto.nc1uw1aoi420d85w1sos.de/documents/oreilly/perl/perlnut/index/idx_f.htm (1 of 5) [2/7/2001 10:27:48 PM]

Trang 43

File::Compare module : 8.70 File::Compare

http://www.crypto.nc1uw1aoi420d85w1sos.de/documents/oreilly/perl/perlnut/index/idx_f.htm (2 of 5) [2/7/2001 10:27:48 PM]

Trang 44

fixed-precision numeric fields : 4.10 Formats

flash()

Flush()

format()

http://www.crypto.nc1uw1aoi420d85w1sos.de/documents/oreilly/perl/perlnut/index/idx_f.htm (3 of 5) [2/7/2001 10:27:48 PM]

Trang 45

$FORMAT_LINES_LEFT ($-) variable : 4.4.6 Filehandle Special Variables

functions, loading

http://www.crypto.nc1uw1aoi420d85w1sos.de/documents/oreilly/perl/perlnut/index/idx_f.htm (4 of 5) [2/7/2001 10:27:48 PM]

Ngày đăng: 12/08/2014, 21:21

TỪ KHÓA LIÊN QUAN