Next | Tricks of the Wizards | 38 |
In Perl 6, this will be more straightforward
Filehandles will just be objects from class IO
Built-in functions like print and <> will be method calls
So just subclass IO and add the methods you want
Next | Copyright © 2003 M. J. Dominus |