I think it takes >> or << along with some other data.
TODO: Needs more thorough documentation. Patches welcome.
|filename||Gets/sets the filename. Returns the value after the name change, if any.|
|init||Does initialization required before this can be run. This includes open()ing the file, if necessary, and clearing the destination scalar if necessary.|
|open||If a filename was passed in, opens it. Determines if the handle is open via fileno(). Throws an exception on error.|
|open_pipe||If this is a redirection IO object, this opens the pipe in a platform independent manner.|
|close||Closes the handle. Throws an exception on failure.|
|fileno||Returns the fileno of the handle. Throws an exception on failure.|
Returns the operator in terms of r, w, and a. There is a state
ra, unlike Perls open(), which indicates that data read from the
handle or file will be appended to the output if the output is a scalar.
This is only meaningful if the output is a scalar, it has no effect if
the output is a subroutine.
The redirection operators can be a little confusing, so heres a reference table:
|op||Returns the operation: <, >, <<, >>. See mode if you want to spell these r, w, etc.|
|binmode||Sets/gets whether this pipe is in binmode or not. No effect off of Win32 OSs, of course, and on Win32, no effect after the harness is start()ed.|
|dir||Returns the first character of $self->op. This is either < or >.|
TODO: Needs confirmation that this is correct. Was previously undocumented.
I believe this is polling the IO for new input and then returns undef if there will never be any more input, 0 if there is none now, but there might be in the future, and TRUE if more input was gotten.
Barrie Slaymaker <email@example.com>
|perl v5.20.3||IPC::RUN::IO (3)||2014-12-11|