ZeeGee Software

IO::WrapTie 2.102

This module is BETA code, which means that the interfaces are fairly stable BUT it has not been out in the community long enough to guarantee much testing. Use with caution! Please report any errors back to eryq@zeegee.com as soon as you can.


Top NAME

IO::WrapTie - wrap tieable objects in IO::Handle interface

This is currently Alpha code, released for comments. Please give me your feedback!


Top SYNOPSIS

First of all, you'll need tie(), so:

   require 5.004;

Function interface (experimental). Use this with any existing class...

   use IO::WrapTie;
   use FooHandle;                  ### implements TIEHANDLE interface
   ### Suppose we want a "FooHandle->new(&FOO_RDWR, 2)".
   ### We can instead say...
   $FH = wraptie('FooHandle', &FOO_RDWR, 2);