TAP::PARSER::ITERATOR::STREAM(3pm)
π TAP::Parser::Iterator::Stream (3pm) β¨
okay so bestie, welcome to the Perl Programmers Reference Guide π this little icon is TAP::Parser::Iterator::Stream, and she's the one who reads your TAP from filehandles, no cap π
β¨ VERSION β¨
Version 3.50 β yes she's on that version, slay π₯
πΈ SYNOPSIS πΈ
use TAP::Parser::Iterator::Stream;
open( TEST, 'test.tap' );
my $it = TAP::Parser::Iterator::Stream->new(\*TEST);
my $line = $it->next;
that's literally it β open the file, wrap the filehandle, call next, get a line π¦ so simple, main character energy fr fr
π DESCRIPTION π
so this is a simple iterator wrapper for reading from filehandles, lowkey just a cute little shell around your filehandle, and it's used by TAP::Parser π
real talk though β unless you're out here writing a plugin or subclassing something, you probably won't need to use this module directly. like, it's giving "internal business" π no need to touch her
π METHODS π
π Class Methods π
newβ creates an iterator, obviously π she expects exactly one argument containing a filehandle. one. just the filehandle. periodt.
β Instance Methods β
nextβ iterates through it, of course β¨ like what else would she donext_rawβ iterates raw input without applying any fixes for quirky input syntax π no fixing, no cleaning, raw as it comes, iykykwaitβ gets the wait status for this iterator π and it always returns zero. always. zero. no notes.exitβ gets the exit status for this iterator π«Ά and guess what bestie, always returns zero too π
πΈ ATTRIBUTION πΈ
originally ripped off from Test::Harness π iconic behaviour honestly, we love a humble origin story π
π SEE ALSO π
TAP::ObjectTAP::ParserTAP::Parser::Iterator
okay that's the whole thing bestie, go forth and iterate π§π
cute lil sign-off: this wasperl v5.42.3, dated2026-11-03, and that's the footer, slay π β¨
π¦ where this page comes from
- alpine 3.24: perl-doc 5.42.3-r0 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms