Next | Tricks of the Wizards | 31 |
The biggest win is using the filehandle part
Perl accepts a glob reference anywhere it normally expects a filehandle
If your object is a blessed glob reference, people can use it like a filehandle
Let's write an object that looks like a regular filehandle
But it supports a flush method that flushes any buffered data
Next | Copyright © 2003 M. J. Dominus |