Production Scripting with Perl
Table of Contents

Table of Contents: small | med | large


  1. Introduction
    1. Introduction
    2. About the author - Steve Hwan's Programming Background
  2. Introduction to Perl
    1. Useful books and magazines for Perl
    2. Running Perl - running the examples on this site
    3. Some Simple Functions - print, system, and exec
    4. Variable types in Perl - scalars, arrays, hashes
    5. Control Structures - for, foreach, while, if
    6. Libraries and deferred code evaluation - sub, use, and eval - summarizing ranges of frames
    7. Getting input, file handling - @ARGV, <STDIN>, backticks, open
    8. Regular Expressions - renaming/renumbering files
    9. Pointers/References and Arbitrary Data Structures - Summarizing ranges of frames
    10. IN PROGRESS Modules and Objects - grouping subroutines and data structures
  3. Perl - my idiosyncracies
    1. About this section
    2. Avoid Barewords - subroutine calls and quoting
    3. Be more explicit than you have to - variables, scalar context, using return, and precedence
    4. Scoping and objects
    5. Dereferencing scalar references - use -> with arbitrary structures
    6. Boolean operations - or, and, not
    7. $|=1; - turning off output buffering
    8. Variable and subroutine naming conventions
  4. Perl - Doing it Better
    1. File Globbing is Evil - rendering RIBs, converting Texture Maps
    2. Avoiding backticking `pwd`, `find .`, and `mkdir -p`
    3. Piping to/from a child process without system or backtick - gzipped tar files
    4. Using eval for regular expressions in loops - Binding a material to a patch
    5. Using Getopt::Long - processing command line args
    6. Using Data::Dumper - saving data structures
  5. Perl Tips and Tricks
    1. HERE Documents - generating MEL from Perl
    2. Constants and Typeglob References - Enumerating states or status
    3. Common additions to @INC - Allowing a development copy of your script
    4. Setting values in an arbitrary depth hash
    5. UNWRITTEN functionTables.html
    6. UNWRITTEN preservingTimeStamps.html
    7. UNWRITTEN templateFilesVarSubs.html
  6. Perl Traps
    1. Typos are valid variable names too
    2. Assigning regexp results out of list context
    3. Losing track of references - keep track of what needs to be dereffed
    4. Not every command has array context.
    5. It's annoying to keep track of precedence
    6. Array context is not the same as List context
  7. Perl Surbroutines Review
  8. Perl Applications Review
  9. Appendices
    1. Bibliography and References
    2. Hardware - What is a computer?
    3. UNWRITTEN whatIsAProgram.html
    4. UNWRITTEN whatIsAnOS.html

© 2001 Steve Hwan, hostname: @pacbell.net, username: svhwan
You should probably use the word "PERL" in the subject line to get my attention.
Last Modified: Sun Dec 2 19:22:05 2001