NAME
IO::Handle::Rewind - pretend to rewind filehandles
VERSION
0.02
DESCRIPTION
IO::Handle::Rewind wraps any IO::Handle object in a soft, fluffy coat.
METHODS
Delegates most methods to the wrapped object.
IO::Handle::Rewind->new($obj)
Return an IO::Handle::Rewind object wrapping the passed-in IO::Handle.
$re->rewind(@lines, $lines)
Further calls to readline
, getline
, or getlines
will read from the passed-in array/arrayrefs before actually reading further from the filehandle.
Despite the name, this does not seek the filehandle.
$re->getline
$re->getlines
$re->readline
See documentation for rewind
.