Tie::FileHandle::Base - a base class to simplify filehandle tie module implementation
By noting the redundancies inherent in the filehandle tie methods, this module seeks to aid in implementation of new modules by reducing the number of required functions.
Care should be taken by classes that use AUTOLOAD. Make sure to predeclare subroutines that will be autoloaded - as in:
Otherwise this module will make incorrect presumptions and your module will not function as you intend.
Since PRINT, PRINTF, and WRITE are all quite similar in scope, any one of these can be implemented from any of the others. So, you only need implement one of the above.
By implementing READ or GETC, you can get the entire complement of READ, READLINE, and GETC. Note however that READ and GETC cannot be derived nicely from READLINE.
EOF can be implemented crudely if given READ or GETC along with a backwards supporting SEEK.
Implements PRINT based on WRITE or PRINTF.
Implements PRINTF based off of PRINT, which may in turn base itself off of WRITE.
Implements WRITE based off of PRINT, which may in turn base itself off of PRINTF.
Crude EOF implemented using READ and SEEK.
This is a new module and has not been thoroughly tested.
Written by Robby Walker ( firstname.lastname@example.org ) for Point Writer ( http://www.pointwriter.com/ ).
You may redistribute/modify/etc. this module under the same terms as Perl itself.