Perl in a Nutshell

Book description

Perl in a Nutshell is a comprehensive reference guide to the Perl programming language. This book covers all the core features of the language. It ranges widely through the Perl programmer's universe, gathering together in convenient form a wealth of information about Perl itself and its application to CGI scripts, network programming, database interaction, and graphical user interfaces. It also gives detailed coverage about using Perl within a Win32 environment. This book assembles more information about the language in one place than any other reference work. Here are just some of the topics covered in the book:

  • Basic language reference

  • Introduction to using Perl modules

  • Perl and CGI: CGI basics, CGI.pm, mod_perl

  • DBI, the database-independent API for Perl

  • Sockets programming in Perl

  • LWP, the library for World Wide Web programming in Perl

  • The Net::* modules

As part of the successful "in a Nutshell" series of books from O'Reilly & Associates, Perl in a Nutshell is for readers who want a single reference for all their needs.

Table of contents

  1. Perl in a Nutshell
    1. Preface
      1. How This Book Is Organized
      2. Typographical Conventions
      3. How to Contact Us
      4. Acknowledgments
    2. I. Getting Started
      1. 1. Introduction to Perl
        1. What’s Perl Good For?
        2. Perl Development
        3. Which Platforms Support Perl?
        4. Perl Resources
          1. The comp.lang.perl.* Newsgroups
          2. Frequently Asked Questions Lists (FAQs)
          3. Mailing Lists
          4. www.perl.com
          5. The Perl Institute (www.perl.org)
          6. Perl Mongers
          7. The Perl Journal
          8. Perl Conferences
          9. Books
      2. 2. Installing Perl
        1. The CPAN Architecture
        2. How Is CPAN Organized?
        3. Installing Perl
          1. Installing on Unix
            1. Perl examples
            2. Patches
          2. Installing on Win32
            1. ActivePerl
            2. Standard Perl distribution
        4. Getting and Installing Modules
          1. Locating modules
          2. Module Installation
          3. Installing Modules with ActiveState Perl
            1. Using MakeMaker
            2. Using the Perl Package Manager
          4. Installing Modules with the CPAN Module
            1. ?
            2. !
            3. a
            4. autobundle
            5. b
            6. clean
            7. d
            8. force
            9. h
            10. i
            11. install
            12. look
            13. m
            14. make
            15. o
            16. q
            17. r
            18. readme
            19. recompile
            20. reload
            21. test
            22. u
        5. Documentation
          1. Installing the Documentation
          2. The Perl Manpages
    3. II. Language Basics
      1. 3. The Perl Interpreter
        1. Command Processing
        2. Command-Line Options
        3. Environment Variables
        4. The Perl Compiler
        5. Threads
      2. 4. The Perl Language
        1. Program Structure
        2. Data Types and Variables
          1. Numbers
          2. String Interpolation
          3. Lists
          4. Variables
            1. Arrays
            2. Hashes
          5. Scalar and List Contexts
          6. Declarations and Scope
        3. Statements
          1. Conditionals and Loops
            1. while loops
            2. for loops
            3. foreach loops
            4. Modifiers
            5. Loop control
            6. goto
        4. Special Variables
          1. Global Special Variables
          2. Global Special Arrays and Hashes
          3. Global Special Filehandles
          4. Global Special Constants
          5. Regular Expression Special Variables
          6. Filehandle Special Variables
        5. Operators
          1. The Arrow Operator
          2. Unary Operators
          3. Arithmetic Operators
          4. Comparison Operators
            1. Relational operators
            2. Equality operators
          5. Autoincrement and Autodecrement
          6. Assignment Operators
          7. Pattern Match Operators
          8. File Test Operators
          9. Logical Operators
          10. Bitwise Operators
          11. Miscellaneous Operators
            1. Range operator
            2. Conditional operator
            3. Comma operator
            4. String operator
        6. Regular Expressions
          1. Pattern-Matching Operators
          2. Regular Expression Syntax
          3. Escaped Sequences
          4. Character Classes
          5. Anchors
          6. Quantifiers
          7. Pattern Match Variables
          8. Extended Regular Expressions
        7. Subroutines
          1. Calling Subroutines
          2. Passing Arguments
          3. Passing References
          4. Private and Local Variables
          5. Prototypes
        8. References and Complex Data Structures
          1. Creating References
            1. Referencing anonymous data
          2. Dereferencing
            1. Arrow dereferencing
        9. Filehandles
        10. Formats
        11. Pod
          1. Paragraph tags
            1. =back
            2. =begin
            3. =cut
            4. =end
            5. =for
            6. =head1
            7. =head2
            8. =item
            9. =over
            10. =pod
          2. Interior sequences
          3. Pod Utilities
            1. perldoc
            2. pod2fm
            3. pod2html
            4. pod2latex
            5. pod2man
            6. pod2text
      3. 5. Function Reference
        1. Perl Functions by Category
        2. Perl Functions in Alphabetical Order
          1. abs
          2. accept
          3. alarm
          4. atan2
          5. bind
          6. binmode
          7. bless
          8. caller
          9. chdir
          10. chmod
          11. chomp
          12. chop
          13. chown
          14. chr
          15. chroot
          16. close
          17. closedir
          18. connect
          19. cos
          20. crypt
          21. dbmclose
          22. dbmopen
          23. defined
          24. delete
          25. die
          26. do
          27. dump
          28. each
          29. endgrent
          30. endhostent
          31. endnetent
          32. endprotoent
          33. endpwent
          34. endservent
          35. eof
          36. eval
          37. exec
          38. exists
          39. exit
          40. exp
          41. fcntl
          42. fileno
          43. flock
          44. fork
          45. formline
          46. getc
          47. getgrent
          48. getgrgid
          49. getgrnam
          50. gethostbyaddr
          51. gethostbyname
          52. gethostent
          53. getlogin
          54. getnetbyaddr
          55. getnetbyname
          56. getnetent
          57. getpeername
          58. getpgrp
          59. getppid
          60. getpriority
          61. getprotobyname
          62. getprotobynumber
          63. getprotoent
          64. getpwent
          65. getpwnam
          66. getpwuid
          67. getservbyname
          68. getservbyport
          69. getservent
          70. getsockname
          71. getsockopt
          72. glob
          73. gmtime
          74. goto
          75. grep
          76. hex
          77. index
          78. int
          79. ioctl
          80. join
          81. keys
          82. kill
          83. last
          84. lc
          85. lcfirst
          86. length
          87. link
          88. listen
          89. local
          90. localtime
          91. log
          92. lstat
          93. map
          94. mkdir
          95. msgctl
          96. msgget
          97. msgrcv
          98. msgsnd
          99. my
          100. next
          101. no
          102. oct
          103. open
          104. opendir
          105. ord
          106. pack
          107. package
          108. pipe
          109. pop
          110. pos
          111. print
          112. printf
          113. prototype
          114. push
          115. q/string/
          116. quotemeta
          117. rand
          118. read
          119. readdir
          120. readline
          121. readlink
          122. readpipe
          123. recv
          124. redo
          125. ref
          126. rename
          127. require
          128. reset
          129. return
          130. reverse
          131. rewinddir
          132. rindex
          133. rmdir
          134. scalar
          135. seek
          136. seekdir
          137. select
          138. select
          139. semctl
          140. semget
          141. semop
          142. send
          143. sethostent
          144. setgrent
          145. setnetent
          146. setpgrp
          147. setpriority
          148. setprotoent
          149. setpwent
          150. setservent
          151. setsockopt
          152. shift
          153. shmctl
          154. shmget
          155. shmread
          156. shmwrite
          157. shutdown
          158. sin
          159. sleep
          160. socket
          161. socketpair
          162. sort
          163. splice
          164. split
          165. sprintf
          166. sqrt
          167. srand
          168. stat
          169. study
          170. sub
          171. substr
          172. symlink
          173. syscall
          174. sysopen
          175. sysread
          176. sysseek
          177. system
          178. syswrite
          179. tell
          180. telldir
          181. tie
          182. tied
          183. time
          184. times
          185. truncate
          186. uc
          187. ucfirst
          188. umask
          189. undef
          190. unlink
          191. unpack
          192. unshift
          193. untie
          194. use
          195. utime
          196. values
          197. vec
          198. wait
          199. waitpid
          200. wantarray
          201. warn
          202. write
      4. 6. Debugging
        1. The Perl Debugger
        2. Debugger Commands
          1. a
          2. A
          3. b
          4. b
          5. b
          6. b
          7. b
          8. c
          9. d
          10. D
          11. f
          12. h
          13. H
          14. l
          15. L
          16. m
          17. m
          18. n
          19. O
          20. p
          21. q
          22. r
          23. R
          24. s
          25. S
          26. t
          27. t
          28. T
          29. v
          30. V
          31. w
          32. x
          33. X
          34. <CR>
          35. -
          36. .
          37. / pattern /
          38. ? pattern ?
          39. <
          40. <<
          41. >
          42. >>
          43. {
          44. {{
          45. !
          46. !
          47. !
          48. !!
          49. |
          50. ||
          51. =
          52. command
        3. Using the Debugger
        4. Customizing the Debugger
        5. The Perl Profiler
        6. The perlbug Program
    4. III. Modules
      1. 7. Packages, Modules, and Objects
        1. Namespaces and Packages
        2. Modules
        3. Object-Oriented Perl
        4. Object Syntax
      2. 8. Standard Modules
        1. AnyDBM_File
        2. attrs
        3. AutoLoader
        4. AutoSplit
          1. autosplit
          2. autosplit_lib_modules
        5. autouse
        6. B
        7. B::Asmdata
        8. B::Assembler
        9. B::Bblock
        10. B::Bytecode
        11. B::C
        12. B::CC
        13. B::Debug
        14. B::Deparse
        15. B::Disassembler
        16. B::Lint
        17. B::Showlex
        18. B::Stackobj
        19. B::Terse
        20. B::Xref
        21. base
        22. Benchmark
          1. new
          2. clearallcache
          3. clearcache
          4. debug
          5. disablecache
          6. enablecache
          7. timediff
          8. timeit
          9. timestr
          10. timethese
          11. timethis
        23. blib
        24. Carp
          1. carp
          2. cluck
          3. confess
          4. croak
        25. CGI
        26. CGI::Apache
        27. CGI::Carp
          1. carpout
          2. fatalsToBrowser
        28. CGI::Cookie
          1. new
          2. as_string
          3. domain
          4. expires
          5. fetch
          6. name
          7. parse
          8. path
          9. raw_fetch
          10. value
        29. CGI::Fast
        30. CGI::Push
          1. do_push
        31. CGI::Switch
        32. Class::Struct
          1. struct
        33. Config
          1. config_sh
          2. config_vars
          3. myconfig
        34. constant
        35. CPAN
          1. Session and Cache Managers
          2. Bundles are
          3. Configuration
          4. CD-ROM Support
        36. CPAN::FirstTime
        37. CPAN::Nox
        38. Cwd
          1. cwd
          2. getcwd
          3. fastcwd
        39. Data::Dumper
          1. new
          2. Dump
          3. Dumper
          4. DumperX
          5. Dumpxs
          6. Reset
          7. Seen
          8. Values
        40. DB_File
          1. del
          2. fd
          3. get
          4. put
          5. seq
          6. sync
        41. Devel::SelfStubber
          1. stub
        42. diagnostics
          1. Options
        43. DirHandle
          1. new
          2. close
          3. open
          4. read
          5. rewind
        44. DynaLoader
          1. Using DynaLoader
          2. Extending to New Architectures
            1. bootstrap
            2. dl_error
            3. dl_expandspec
            4. dl_findfile
            5. dl_find_symbol
            6. dl_install_xsub
            7. dl_load_file
            8. dl_undef_symbols
        45. English
        46. Env
        47. Errno
        48. Exporter
          1. export_to_level
          2. import
          3. require_version
          4. export_fail
          5. export_tags
          6. export_ok_tags
        49. ExtUtils::Command
          1. cat
          2. chmod
          3. cp
          4. eqtime
          5. mkpath
          6. mv
          7. rm_f
          8. rm_rf
          9. test_f
          10. touch
        50. ExtUtils::Embed
          1. ccdlflags
          2. ccflags
          3. ccopts
          4. ldopts
          5. perl_inc
          6. xsinit
          7. xsi_header
          8. xsi_protos
          9. xsi_body
        51. ExtUtils::Install
          1. install
          2. install_default
          3. pm_to_blib
          4. uninstall
        52. ExtUtils::Installed
          1. new
          2. directories
          3. directory_tree
          4. files
          5. modules
          6. packlist
          7. validate
          8. version
        53. ExtUtils::Liblist
        54. ExtUtils::MakeMaker
        55. ExtUtils::Manifest
          1. filecheck
          2. fullcheck
          3. manicheck
          4. manicopy
          5. mkmanifest
          6. manifind
          7. maniread
          8. skipcheck
        56. ExtUtils::Miniperl
          1. writemain
        57. ExtUtils::Mkbootstrap
        58. ExtUtils::Mksymlists
          1. Mksymlists
        59. ExtUtils::MM_OS2
        60. ExtUtils::MM_Unix
          1. Reference Section
            1. catdir
          2. Reference Section
            1. catfile
          3. Reference Section
            1. dir_target
          4. Reference Section
            1. file_name_is_absolute
          5. Reference Section
            1. find_perl
          6. Reference Section
            1. guess_name
          7. Reference Section
            1. has_link_code
          8. Reference Section
            1. libscan
          9. Reference Section
            1. lsdir
          10. Reference Section
            1. maybe_command_in_dirs
          11. Reference Section
            1. maybe_command
          12. Reference Section
            1. needs_linking
          13. Reference Section
            1. nicetext
          14. Reference Section
            1. path
          15. Reference Section
            1. perl_script
          16. Reference Section
            1. prefixify
          17. Reference Section
            1. replace_manpage_separator
          18. Methods to Produce the Makefile
        61. ExtUtils::MM_VMS
        62. ExtUtils::MM_Win32
          1. catfile
          2. constants
          3. static_lib
          4. dynamic_bs
          5. dynamic_lib
          6. canonpath
          7. perl_script
          8. pm_to_blib
          9. test_via_harness
          10. tool_autosplit
          11. tools_other
          12. xs_o
          13. top_targets
          14. manifypods
          15. dist_ci
          16. dist_core
          17. pasthru
        63. ExtUtils::Packlist
          1. new
          2. packlist_file
          3. read
          4. validate
          5. write
        64. ExtUtils::testlib
        65. Fatal
          1. import
        66. Fcntl
        67. fields
        68. File::Basename
          1. basename
          2. dirname
          3. fileparse
          4. fileparse_set_fstype
        69. File::CheckTree
        70. File::Compare
          1. compare
          2. cmp
        71. File::Copy
          1. copy
          2. cp
          3. move
          4. mv
        72. File::DosGlob
        73. File::Find
          1. find
          2. finddepth
        74. File::Path
          1. mkpath
          2. rmtree
        75. File::Spec
        76. File::Spec::Mac
          1. canonpath
          2. catdir
          3. catfile
          4. curdir
          5. file_name_is_absolute
          6. path
          7. rootdir
          8. updir
        77. File::Spec::OS2
        78. File::Spec::Unix
          1. canonpath
          2. catdir
          3. catfile
          4. curdir
          5. file_name_is_absolute
          6. join
          7. no_upwards
          8. path
          9. rootdir
          10. updir
        79. File::Spec::VMS
          1. catdir
          2. catfile
          3. curdir
          4. file_name_is_absolute
          5. path
          6. rootdir
          7. updir
        80. File::Spec::Win32
          1. canonpath
          2. catfile
        81. File::stat
          1. stat
          2. lstat
        82. FileCache
          1. cacheout
        83. FileHandle
          1. new
          2. new_from_fd
          3. fdopen
          4. getpos
          5. open
          6. setpos
          7. setvbuf
        84. FindBin
        85. GDBM_File
        86. Getopt::Long
          1. GetOptions
          2. config
        87. Getopt::Std
          1. getopt
          2. getopts
        88. I18N::Collate
        89. integer
        90. IO
        91. IO::File
          1. new
          2. new_tmpfile
          3. open
        92. IO::Handle
          1. new
          2. new_from_fd
          3. clearerr
          4. error
          5. fdopen
          6. flush
          7. getline
          8. getlines
          9. opened
          10. ungetc
          11. untaint
          12. write
        93. IO::Pipe
          1. new
          2. reader
          3. writer
          4. handles
        94. IO::Seekable
          1. seek
          2. tell
        95. IO::Select
          1. new
          2. add
          3. bits
          4. can_read
          5. can_write
          6. count
          7. exists
          8. handles
          9. has_error
          10. remove
          11. select
        96. IO::Socket
        97. IPC::Msg
          1. new
          2. id
          3. rcv
          4. remove
          5. set
          6. snd
          7. stat
        98. IPC::Open2
          1. open2
        99. IPC::Open3
        100. IPC::Semaphore
          1. new
          2. getall
          3. getncnt
          4. getpid
          5. getval
          6. getzcnt
          7. id
          8. op
          9. remove
          10. set
          11. setall
          12. setval
          13. stat
        101. IPC::SysV
          1. ftok
        102. less
        103. lib
        104. locale
        105. Math::BigFloat
          1. new
          2. fabs
          3. fadd
          4. fcmp
          5. fdiv
          6. ffround
          7. fmul
          8. fneg
          9. fnorm
          10. fround
          11. fsqrt
          12. fsub
        106. Math::BigInt
          1. new
          2. babs
          3. badd
          4. bcmp
          5. bdiv
          6. bgcd
          7. bmod
          8. bmul
          9. bneg
          10. bnorm
          11. bsub
        107. Math::Complex
          1. emake
          2. display_format
          3. make
        108. Math::Trig
        109. NDBM_File
        110. Net::hostent
          1. gethost
          2. gethostbyaddr
          3. gethostbyname
        111. Net::netent
          1. getnet
          2. getnetbyaddr
          3. getnetbyname
        112. Net::Ping
          1. new
          2. close
          3. ping
          4. pingecho
        113. Net::protoent
          1. getproto
          2. getprotoent
          3. getprotobyname
          4. getprotobynumber
        114. Net::servent
          1. getserv
          2. getservbyname
          3. getservbyport
          4. getservent
        115. O
        116. ODBM_File
        117. Opcode
          1. Functions
            1. define_optag
            2. empty_opset
            3. full_opset
            4. invert_opset
            5. opcodes
            6. opdesc
            7. opdump
            8. opmask
            9. opmask_add
            10. opset
            11. opset_to_hex
            12. opset_to_ops
            13. verify_opset
        118. ops
        119. overload
          1. StrVal
          2. Overloaded
          3. Method
        120. Pod::Functions
        121. Pod::Html
        122. Pod::Text
          1. pod2text
        123. POSIX
          1. POSIX::SigAction
            1. new
          2. POSIX::SigSet
            1. new
            2. addset
            3. delset
            4. emptyset
            5. fillset
            6. ismember
          3. POSIX::Termios
            1. new
            2. getattr
            3. getcc
            4. getcflag
            5. getiflag
            6. getispeed
            7. getlflag
            8. getoflag
            9. getospeed
            10. setattr
            11. setcc
            12. setcflag
            13. setiflag
            14. setispeed
            15. setlflag
            16. setoflag
            17. setospeed
          4. Constants
        124. re
        125. Safe
          1. new
          2. mask
          3. rdo
          4. reval
          5. root
          6. share
          7. trap
          8. untrap
          9. varglob
          10. emptymask
          11. fullmask
          12. mask_to_ops
          13. MAXO
          14. opcode
          15. op_mask
          16. opname
          17. ops_to_mask
        126. SDBM_File
        127. Search::Dict
          1. look
        128. SelectSaver
          1. new
        129. SelfLoader
        130. Shell
        131. sigtrap
          1. Signal Handler Options
          2. Signal List Options
          3. Other Options
        132. Socket
        133. strict
        134. subs
        135. Symbol
          1. gensym
          2. ungensym
          3. qualify
          4. qualify_to_ref
        136. Sys::Hostname
        137. Sys::Syslog
          1. closelog
          2. openlog
          3. setlogmask
          4. syslog
        138. Term::Cap
          1. Tgetent
          2. Tgoto
          3. Tpad
          4. Tputs
          5. Trequire
        139. Term::Complete
          1. Complete
        140. Term::ReadLine
          1. new
          2. addhistory
          3. Features
          4. findConsole
          5. MinLine
          6. ReadLine
          7. readline
        141. Test
        142. Test::Harness
          1. runtests
        143. Text::Abbrev
          1. abbrev
        144. Text::ParseWords
          1. quotewords
          2. old_shellwords
          3. shellwords
        145. Text::Soundex
        146. Text::Tabs
          1. expand
          2. unexpand
        147. Text::Wrap
          1. wrap
        148. Thread
          1. new
          2. async
          3. cond_broadcast
          4. cond_signal
          5. cond_wait
          6. eval
          7. join
          8. lock
          9. list
          10. self
          11. tid
        149. Thread::Queue
          1. new
          2. dequeue
          3. dequeue_nb
          4. enqueue
          5. pending
        150. Thread::Semaphore
          1. new
          2. down
          3. up
        151. Thread::Signal
        152. Thread::Specific
          1. key_create
        153. Tie::Array, Tie::StdArray
          1. TIEARRAY
          2. CLEAR
          3. DESTROY
          4. EXTEND
          5. FETCH
          6. FETCHSIZE
          7. POP
          8. PUSH
          9. SHIFT
          10. SPLICE
          11. STORE
          12. STORESIZE
          13. UNSHIFT
        154. Tie::Handle
          1. TIEHANDLE
          2. DESTROY
          3. GETC
          4. PRINT
          5. PRINTF
          6. READ
          7. READLINE
          8. WRITE
        155. Tie::Hash, Tie::StdHash
          1. TIEHASH
          2. CLEAR
          3. DELETE
          4. EXISTS
          5. FETCH
          6. FIRSTKEY
          7. NEXTKEY
          8. STORE
        156. Tie::RefHash
        157. Tie::Scalar, Tie::StdScalar
          1. TIESCALAR
          2. DESTROY
          3. FETCH
          4. STORE
        158. Tie::SubstrHash
        159. Time::gmtime
          1. gmtime
          2. gmctime
        160. Time::Local
          1. timegm
          2. timelocal
        161. Time::localtime
          1. localtime
          2. ctime
        162. Time::tm
        163. UNIVERSAL
          1. can
          2. isa
          3. VERSION
        164. User::grent
          1. getgr
          2. getgrent
          3. getgrgid
          4. getgrnam
        165. User::pwent
          1. getpw
          2. getpwent
          3. getpwnam
          4. getpwuid
        166. vars
        167. vmsish
    5. IV. CGI
      1. 9. CGI Overview
        1. A Typical CGI Interaction
          1. Transferring the Form Data
          2. Creating Virtual Documents
        2. URL Encoding
        3. Extra Path Information
        4. CGI Environment Variables
      2. 10. The CGI.pm Module
        1. HTML Tag Generation
        2. Importing Method Groups
        3. Maintaining State
        4. Named Parameters
        5. Using JavaScript Features
        6. Debugging
        7. CGI.pm Reference
          1. accept
          2. append
          3. auth_type
          4. autoEscape
          5. button
          6. checkbox
          7. checkbox_group
          8. cookie
          9. defaults
          10. delete
          11. delete_all
          12. dump
          13. end_html
          14. filefield
          15. header
          16. hidden
          17. image_button
          18. import_names
          19. isindex
          20. keywords
          21. nph
          22. param
          23. password_field
          24. path_info
          25. path_translated
          26. popup_menu
          27. radio_group
          28. raw_cookie
          29. ReadParse
          30. redirect
          31. referer
          32. remote_host
          33. remote_user
          34. request_method
          35. reset
          36. save
          37. script_name
          38. scrolling_list
          39. self_url
          40. start_html
          41. startform
          42. start_multipart_form
          43. submit
          44. textarea
          45. textfield
          46. url
          47. use_named_parameters
          48. user_agent
          49. user_name
      3. 11. Web Server Programming with mod_perl
        1. Design of mod_perl
        2. Installing mod_perl
        3. mod_perl Handlers
        4. Running CGI Scripts with mod_perl
        5. Server-Side Includes with mod_perl
        6. <Perl> Sections
        7. Apache:: Modules
    6. V. Databases
      1. 12. Databases and Perl
        1. DBM Databases and DBM Hashes
        2. Design of DBI
          1. Database Drivers (DBDs)
          2. Creating a Database
          3. Database Handles and Statement Handles
          4. Placeholders database and statement handles
        3. DBI Methods
          1. available_drivers
          2. bind_param
          3. commit
          4. connect
          5. data_sources
          6. disconnect
          7. do
          8. dump_results
          9. err
          10. errstr
          11. func
          12. execute
          13. fetch
          14. fetchall_arrayref
          15. fetchrow_array
          16. fetchrow_arrayref
          17. fetchrow_hashref
          18. finish
          19. neat
          20. neat_list
          21. ping
          22. prepare
          23. quote
          24. rollback
          25. rows
          26. bind_col
          27. bind_columns
          28. state
          29. trace
          30. trace
        4. DBI Environment Variables
    7. VI. Network Programming
      1. 13. Sockets
        1. Built-in Socket Functions
          1. Initializing a Socket
          2. Client Connections
          3. Server Connections
          4. Socket Module Functions
            1. inet_aton
            2. inet_ntoa
            3. sockaddr_in
            4. sockaddr_un
            5. unpack_sockaddr_in
            6. unpack_sockaddr_un
        2. The IO::Socket Module
          1. Client-Side Sockets
          2. Server-Side Sockets
          3. IO::Socket Methods
            1. accept
            2. timeout
            3. sockopt
            4. sockdomain
            5. socktype
            6. protocol
          4. IO::Socket::INET Reference
            1. IO::Socket::INET methods
              1. sockaddr
              2. sockport
              3. sockhost
              4. peeraddr
              5. peerport
              6. peerhost
          5. IO::Socket::UNIX Reference
            1. hostpath
            2. peerpath
      2. 14. Email Connectivity
        1. The Net Modules
          1. Send Email with Net::SMTP
          2. The SMTP Protocol and the SMTP Session
            1. Net::SMTP Methods
              1. new
              2. data
              3. dataend
              4. datasend
              5. domain
              6. expand
              7. hello
              8. help
              9. mail
              10. quit
              11. recipient
              12. reset
              13. to
              14. verify
          3. Retrieving Email with Net::POP3
            1. new
            2. apop
            3. delete
            4. get
            5. last
            6. list
            7. login
            8. pass
            9. popstat
            10. quit
            11. reset
            12. top
            13. uidl
            14. user
        2. The Mail Modules
          1. Send Email with Mail::Mailer
            1. new
            2. close
            3. open
          2. Better Header Control with Mail::Send
            1. new
            2. add
            3. bcc
            4. cancel
            5. cc
            6. close
            7. delete
            8. open
            9. set
            10. subject
            11. to
          3. Handle Folders with Mail::Folder
            1. new
            2. add_label
            3. append_message
            4. clear_label
            5. close
            6. current_message
            7. debug
            8. debug_print
            9. delete_label
            10. delete_message
            11. dup
            12. first_labeled_message
            13. first_message
            14. foldername
            15. get_fields
            16. get_header
            17. get_message
            18. get_message_file
            19. get_mime_header
            20. get_mime_message
            21. get_option
            22. inverse_select
            23. is_readonly
            24. label_exists
            25. last_labeled_message
            26. last_message
            27. list_all_labels
            28. list_labels
            29. message_exists
            30. message_list
            31. next_labeled_message
            32. next_message
            33. open
            34. pack
            35. prev_labeled_message
            36. prev_message
            37. qty
            38. refile
            39. select
            40. select_label
            41. set_option
            42. set_readonly
            43. sort
            44. sync
            45. undelete_message
            46. update_message
          4. Handle Messages with Mail::Internet
          5. Mail::Internet Reference
            1. new
            2. add_signature
            3. body
            4. escape_from
            5. head
            6. nntppost
            7. print_header
            8. remove_sig
            9. reply
            10. smtpsend
            11. tidy_body
            12. unescape_from
          6. Parse Email Addresses with Mail::Address
          7. Mail::Address Reference
            1. new
            2. parse
            3. address
            4. canon
            5. comment
            6. format
            7. host
            8. name
            9. path
            10. phrase
            11. user
          8. Reading Email with Mail::POP3Client
            1. Counting messages
            2. Getting and setting the host and port
            3. Retrieving the message body
            4. Deleting and undeleting messages
            5. Checking the connection
            6. Explicitly opening and closing connections
          9. Mail::POP3Client Methods
            1. new
            2. Alive
            3. Body
            4. Close
            5. Connect
            6. Count
            7. Delete
            8. Head
            9. HeadAndBody
            10. Host
            11. Last
            12. List
            13. Login
            14. Message
            15. Pass
            16. POPStat
            17. Port
            18. Reset
            19. Retrieve
            20. Size
            21. Socket
            22. State
            23. User
      3. 15. Usenet News
        1. The NNTP Protocol
        2. Net::NNTP
          1. Initializing the NNTP Client
          2. Net::NNTP Reference
            1. new
            2. active
            3. active_times
            4. article
            5. authinfo
            6. body
            7. date
            8. distributions
            9. group
            10. head
            11. ihave
            12. last
            13. list
            14. listgroup
            15. newgroups
            16. newnews
            17. newsgroups
            18. next
            19. nntpstat
            20. overview_fmt
            21. post
            22. postok
            23. quit
            24. reader
            25. slave
            26. subscriptions
            27. xgtitle
            28. xhdr
            29. xover
            30. xpat
            31. xpath
            32. xrover
        3. The News::Newsrc Module
          1. News::Newsrc Reference
            1. new
            2. add_group
            3. del_group
            4. exists
            5. groups
            6. load
            7. mark
            8. marked
            9. marked_articles
            10. mark_list
            11. mark_range
            12. save
            13. save_as
            14. sub_groups
            15. subscribe
            16. subscribed
            17. unmark
            18. unmarked_articles
            19. unmark_list
            20. unmark_range
            21. unsub_groups
            22. unsubscribe
      4. 16. FTP
        1. The FTP Protocol
        2. Net::FTP
          1. new
          2. abort
          3. appe
          4. append
          5. authorize
          6. ascii
          7. binary
          8. byte
          9. cdup
          10. cwd
          11. delete
          12. dir
          13. ebcdic
          14. get
          15. list
          16. login
          17. ls
          18. mdtm
          19. mkdir
          20. nlst
          21. pasv
          22. pasv_wait
          23. pasv_xfer
          24. pasv_xfer_unique
          25. port
          26. put
          27. put_unique
          28. pwd
          29. quit
          30. quot
          31. rename
          32. retr
          33. rmdir
          34. size
          35. stor
          36. stou
          37. supported
          38. type
          39. unique_name
        3. FTP Configuration with Net::Netrc
          1. lookup
          2. account
          3. lpa
          4. login
          5. password
      5. 17. The LWP Library
        1. LWP Overview
        2. The LWP Modules
          1. LWP::RobotUA sections
            1. as_string
            2. delay
            3. host_wait
            4. no_visits
            5. rules
          2. LWP::Simple
            1. get
            2. getprint
            3. getstore
            4. head
            5. is_error
            6. is_success
            7. mirror
          3. LWP::UserAgent
            1. request
            2. agent
            3. clone
            4. cookie_jar
            5. credentials
            6. env_proxy
            7. from
            8. get_basic_credentials
            9. is_protocol_supported
            10. max_size
            11. mirror
            12. no_proxy
            13. parse_head
            14. proxy
            15. timeout
            16. use_alarm
        3. The HTTP Modules
          1. HTTP::Request
            1. as_string
            2. method
            3. url
          2. HTTP::Response
            1. as_string
            2. base
            3. code
            4. current_age
            5. error_as_HTML
            6. freshness_lifetime
            7. fresh_until
            8. is_error
            9. is_fresh
            10. is_info
            11. is_redirect
            12. is_success
            13. message
          3. HTTP::Headers
            1. clone
            2. header
            3. push_header
            4. remove_header
            5. scan
          4. HTTP::Status
          5. HTTP::Date
            1. time2str
            2. str2time
          6. HTTP::Cookies
            1. HTTP::Cookies
              1. add_cookie_header
              2. as_string
              3. clear
              4. extract_cookies
              5. load
              6. revert
              7. save
              8. set_cookie
              9. scan
            2. HTTP::Cookies::Netscape
          7. HTTP::Daemon
            1. HTTP::Daemon
              1. accept
              2. url
              3. product_tokens
            2. HTTP::Daemon::ClientConn methods
              1. get_request
              2. antique_client
              3. send_status_line
              4. send_basic_header
              5. send_response
              6. send_redirect
              7. send_error
              8. send_file_response
              9. send_file
              10. daemon
          8. HTTP::Message
            1. add_content
            2. clone
            3. content
            4. content_ref
            5. headers
            6. protocol
        4. The HTML Module
          1. HTML::Parser
            1. parse
            2. parse_file
            3. eof
            4. comment
            5. declaration
            6. end
            7. start
            8. text
          2. HTML::Element
            1. as_HTML
            2. attr
            3. content
            4. delete
            5. delete_content
            6. dump
            7. endtag
            8. extract_links
            9. implicit
            10. insert_element
            11. is_empty
            12. is_inside
            13. parent
            14. pos
            15. push_content
            16. starttag
            17. tag
            18. traverse
          3. HTML::TreeBuilder
            1. implicit_tags
            2. ignore_unknown
            3. ignore_text
            4. warn
          4. HTML::FormatPS
          5. HTML::FormatText
        5. The URI Module
          1. URI::Escape
            1. uri_escape
            2. uri_unescape
          2. URI::URL
            1. abs
            2. as_string
            3. base
            4. crack
            5. default_port
            6. eparams
            7. epath
            8. eq
            9. equery
            10. frag
            11. full_path
            12. host
            13. netloc
            14. params
            15. password
            16. path
            17. port
            18. query
            19. rel
            20. scheme
            21. strict
            22. user
    8. VII. Perl/Tk
      1. 18. Perl/Tk
        1. Widgets
          1. Widget Methods
            1. The configure method
            2. The cget method
          2. Scrollbars
            1. Using the Scrolled method
            2. The Scrollbar widget
          3. Callbacks
          4. Colors and Fonts
        2. Geometry Managers
          1. The pack Geometry Manager
            1. Pack methods
          2. The grid Geometry Manager
            1. Grid methods
          3. The Place Geometry Manager
        3. Common Widget Configuration Options
        4. The Button Widget
          1. Button Methods
        5. The Checkbutton Widget
          1. Checkbutton Methods
        6. The Radiobutton Widget
          1. Radiobutton Methods
        7. The Label Widget
        8. The Entry Widget
          1. Text Indexes
          2. Entry Methods
        9. The Scrollbar Widget
          1. Scrollbar Methods
        10. The Listbox Widget
          1. Listbox Indexes
          2. Listbox Methods
        11. The Text Widget
          1. Text Indexes and Modifiers
          2. Text Methods
          3. Tags
          4. Marks
        12. The Canvas Widget
          1. Canvas Creation Methods
          2. Item Tags and IDs
          3. Canvas Methods
        13. The Scale Widget
          1. Scale Methods
        14. The Menubutton Widget
          1. Menu Item Options
          2. Menubutton Methods
        15. The Menu Widget
          1. Menu Indexes
          2. Menu Methods
        16. The Optionmenu Widget
        17. The Frame Widget
        18. The Toplevel Widget
          1. Toplevel Methods
    9. VIII. Win32
      1. 19. Win32 Modules and Extensions
        1. Win32::Clipboard
        2. Win32::Console
          1. Reference Section
            1. Alloc
          2. Reference Section
            1. Attr
          3. Reference Section
            1. Cls
          4. Reference Section
            1. Cursor
          5. Reference Section
            1. Display
          6. Reference Section
            1. FillAttr
          7. Reference Section
            1. FillChar
          8. Reference Section
            1. Flush
          9. Reference Section
            1. Free
          10. Reference Section
            1. GenerateCtrlEvent
          11. Reference Section
            1. GetEvents
          12. Reference Section
            1. Info
          13. Reference Section
            1. Input
          14. Reference Section
            1. InputChar
          15. Reference Section
            1. InputCP
          16. Reference Section
            1. MaxWindow
          17. Reference Section
            1. Mode
          18. Reference Section
            1. MouseButtons
          19. Reference Section
            1. OutputCP
          20. Reference Section
            1. PeekInput
          21. Reference Section
            1. ReadAttr
          22. Reference Section
            1. ReadChar
          23. Reference Section
            1. ReadRect
          24. Reference Section
            1. Scroll
          25. Reference Section
            1. Select
          26. Reference Section
            1. Size
          27. Reference Section
            1. Title
          28. Reference Section
            1. Window
          29. Reference Section
            1. Write
          30. Reference Section
            1. WriteAttr
          31. Reference Section
            1. WriteChar
          32. Reference Section
            1. WriteInput
          33. Reference Section
            1. WriteRect
          34. Constants
        3. Win32::ChangeNotification
          1. close
          2. reset
          3. wait
        4. Win32::Eventlog
          1. Backup
          2. Read
          3. Report
          4. GetOldest
          5. GetNumber
          6. Clear
        5. Win32::File
        6. Win32::FileSecurity
          1. constant
          2. EnumerateRights
          3. Get
          4. MakeMask
          5. Set
        7. Win32::Internet
          1. General Internet Methods
            1. CanonicalizeURL
            2. Close
            3. CombineURL
            4. ConnectBackoff
            5. ConnectionRetries
            6. ConnectTimeout
            7. ControlReceiveTimeout
            8. ControlSendTimeout
            9. CrackURL
            10. CreateURL
            11. DataReceiveTimeout
            12. DataSendTimeout
            13. Error
            14. FetchURL
            15. FTP
            16. GetResponse
            17. GetStatusCallback
            18. HTTP
            19. OpenURL
            20. Password
            21. QueryDataAvailable
            22. QueryOption
            23. ReadEntireFile
            24. ReadFile
            25. SetOption
            26. SetStatusCallback
            27. TimeConvert
            28. UserAgent
            29. Username
            30. Version
          2. FTP Functions
            1. Ascii
            2. Binary
            3. Cd
            4. Delete
            5. Get
            6. List
            7. Mkdir
            8. Mode
            9. Pasv
            10. Put
            11. Pwd
            12. Rename
            13. Rmdir
          3. HTTP Functions
            1. AddHeader
            2. OpenRequest
            3. QueryInfo
            4. Request
            5. SendRequest
        8. Win32::IPC
        9. Win32::Mutex
          1. release
          2. wait
        10. Win32::NetAdmin
          1. GetDomainController
          2. UserCreate
          3. UserDelete
          4. UserGetAttributes
          5. UserSetAttributes
          6. GroupCreate
          7. GroupDelete
          8. GroupGetAttributes
          9. GroupSetAttributes
          10. GroupAddUsers
          11. GroupDeleteUsers
          12. GroupIsMember
          13. GroupGetMembers
          14. LocalGroupCreate
          15. LocalGroupDelete
          16. LocalGroupGetAttributes
          17. LocalGroupSetAttributes
          18. LocalGroupAddUsers
          19. LocalGroupDeleteUsers
          20. LocalGroupIsMember
          21. LocalGroupGetMembers
        11. Win32::NetResource
          1. GetSharedResources
          2. AddConnection
          3. CancelConnection
          4. WNetGetLastError
          5. GetError
          6. GetUNCName
          7. NetShareAdd
          8. NetShareCheck
          9. NetShareDel
          10. NetShareGetInfo
          11. NetShareSetInfo
        12. Win32::Process
          1. Methods
            1. Kill
            2. Suspend
            3. Resume
            4. GetPriorityClass
            5. SetPriorityClass
            6. GetExitCode
            7. Wait
        13. Win32::Registry
          1. Methods
            1. Open
            2. Create
            3. SetValue
            4. SetValueEx
            5. QueryValue
            6. QueryKey
            7. GetKeys
            8. GetValues
            9. Save
            10. Load
            11. DeleteKey
            12. DeleteValue
        14. Win32::Semaphore
          1. wait
          2. release
        15. Win32::Service
          1. StartService
          2. StopService
          3. GetStatus
          4. PauseService
          5. ResumeService
          6. GetServices
        16. Win32::Shortcut
          1. Reference Section
            1. Close
          2. Reference Section
            1. Load
          3. Reference Section
            1. new
          4. Reference Section
            1. Resolve
          5. Reference Section
            1. Save
          6. Reference Section
            1. Set
          7. Shortcut properties
        17. Win32 Extensions
        18. OLE Automation
          1. Creating Objects
            1. new
            2. GetActiveObject
            3. GetObject
          2. Automation Methods and Properties
            1. Win32::OLE methods
              1. Invoke
              2. LastError
              3. QueryObjectType
            2. Win32::OLE functions
              1. in
              2. valof
              3. with
            3. Win32::OLE class variables
          3. Win32::OLE::Enum
            1. Win32::OLE::Enum methods
              1. new
              2. All
              3. Clone
              4. Next
              5. Reset
              6. Skip
          4. Win32::OLE::Variant
            1. Win32::OLE::Variant methods
              1. As
              2. ChangeType
              3. Type
              4. Value
          5. Win32::OLE::Const
      2. 20. PerlScript
        1. Client-Side PerlScript
          1. The Document Object
            1. Document methods
            2. Document properties
        2. Server-Side PerlScript
          1. The Request Object
          2. The Response Object
            1. Setting cookies
            2. Response properties
            3. Response methods
    10. Index
    11. Colophon

Product information

  • Title: Perl in a Nutshell
  • Author(s):
  • Release date: December 1998
  • Publisher(s): O'Reilly Media, Inc.
  • ISBN: 9781565922860