Higher-Order Perl
Chapter 4: Iterators
Table of Contents
- Introduction
-  Filehandles are Iterators
 
 -  Iterators are Objects
 
 -  Other Common Examples of Iterators
 
 - Homemade iterators
- A Trivial Iterator: upto
-  Syntactic Sugar for Manufacturing Iterators
 
  -  dir_walk
 
 -  On Clever Inspirations
 
 - Examples
-  Permutations
 
 -  Genomic Sequence Generator
 
 -  Filehandle Iterators
 
 - A Flat-File Database
 
 - Searching Databases Backwards
-  A Query Package that Transforms Iterators
 
 -  An Iterator that Reads Files Backwards
 
 -  Putting it Together
 
  -  Random Number Generation
 
 - Filters and Transforms
-  imap
 
 -  igrep
 
 -  list_iterator
 
 -  append
 
 - The Semipredicate Problem
-  Avoiding the Problem
 
 -  Alternative undefs
 
 -  Rewriting Utilities
 
 -  Iterators That Return Multiple Values
 
 -  Explicit Exhaustion Function
 
 -  Four-Operation Iterators
 
 -  Iterator Methods
 
 - Alternative Interfaces to Iterators
-  Using foreach to Loop Over More Than One Array
 
 -  An Iterator with an each-like  Interface
 
 - Tied Variable Interfaces
-  Summary of tie
 
 -  Tied Scalars
 
 -  Tied Filehandle
 
 
 - An Extended Example: Web Spiders
-  Pursuing only Interesting Links
 
 -  Referring URLs
 
 -  robots.txt
 
 -  Summary
 
 
  22575
 words / 71 pages. (Last update Sun Nov  7 23:38:54 2004)
Chapter 3 | Chapter 5 | TOP
Return to: 
Universe of Discourse main page |
What's new page |
Perl Paraphernalia |
Higher-Order Perl
mjd-perl-hop+@plover.com