Next | Tricks of the Wizards | 170 |
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 © 2003 M. J. Dominus |