Filesys::POSIX::IO::Handle - Basic wrapper for Perl file handles
This package provides a wrapper for standard Perl file handles. It is not meant to supplant the behavior or necessity of IO::Handle; rather, it is meant to provide a base reference for all of the I/O operations supported by Filesys::POSIX, which ignores concerns such as buffering and the like.
Filesys::POSIX::IO::Handle->new($fh)
Returns a blessed reference to the file handle passed.
$handle->write($buf, $len)
Calls "syswrite" in perlfunc on the current file handle, passing the $buf and $len arguments literally. Returns the result of "syswrite" in perlfunc.
$buf
$len
$handle->print(@args)
Prints a concatenation of each item passed, joined by $/, to the current file handle.
$/
$handle->sprintf($format, @args)
Prints a formatted string to the current file handle. Uses "sprintf" in perlfunc.
$handle->read($buf, $len)
Reads $len bytes from $handle into $buf.
$handle
$handle->seek($pos, $whence)
Seek $handle to $pos bytes, relative to the current byte position, according to the seek mode listed in $whence. $whence is a position modifier as specified in Filesys::POSIX::Bits.
$pos
$whence
$handle->tell
Returns the current absolute byte position of the current file $handle.
$handle->close
Close the current file handle.
Provides an implementation of the interface described herein, but for access to regular file data for Filesys::POSIX::Mem filesystem hierarchies.
To install Filesys::POSIX, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Filesys::POSIX
CPAN shell
perl -MCPAN -e shell install Filesys::POSIX
For more information on module installation, please visit the detailed CPAN module installation guide.