
Io::handle::util and its copackaged modules provide various means of creating file handles from callbacks and by coercing objects. in particular io::handle::prototype::fallback allows you to define a file handle by implementing the various file handle functions as callacks. a much simpler interface is provided by io::handle::iterator which reduces the callbacks that need to be defined to one.