The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

IO::Handle::Rewind - pretend to rewind filehandles

VERSION

0.06

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.

SEE ALSO

IO::Handle

AUTHOR

Hans Dieter Pearcey <hdp@icgroup.com>

LICENSE

Copyright (C) 2005, Hans Dieter Pearcey.

Available under the same terms as Perl itself.