File::Redirect::Base - root for vfs providers
Request to mount $data as pseudo-device number $dev_no. Must return object instance that will receive all further operation requests (see below).
Unmounts device
Return array of 12-items, in the same format as perl's CORE::stat (see perldoc -f stat) on success, and error number integer on failure.
Tries to open $path with $mode. On success must return a glob handle, f.ex. an IO::Scalar object emulating the file. On failure must return error number integer.
IO::Scalar
Optional; implements close(2) semantics - on successful operation must return 0, error number integer otherwise.
To install File::Redirect, copy and paste the appropriate command in to your terminal.
cpanm
cpanm File::Redirect
CPAN shell
perl -MCPAN -e shell install File::Redirect
For more information on module installation, please visit the detailed CPAN module installation guide.