August 1999 | Return to the Perl Hardware Store | Slide #30 |
This is not new: A filehandle is an iterator!
It encapsulates a list of strings (the lines)
The <...> operation requests the next string
Other examples: each, readdir(), glob
Next | Copyright © 1999 M-J. Dominus |