TAP::P...:Array(3perl)
π NAME π
okay so bestie, this is TAP::Parser::Iterator::Array β an iterator for array-based TAP sources. that's the whole vibe. it takes an array and iterates it. iconic behavior, honestly.
β¨ VERSION β¨
Version 3.52 β this is the 3perl manual, and she is serving exactly this version. no notes. π
π¦ SYNOPSIS π¦
here's the whole thing in action, copy-paste ready, don't @ me:
use TAP::Parser::Iterator::Array;
my @data = ('foo', 'bar', baz');
my $it = TAP::Parser::Iterator::Array->new(\@data);
my $line = $it->next;
(yes, that baz has no quotes on it in the original and I am NOT fixing it, that's literally what the manpage says, we respect the source in this house π
)
πΈ DESCRIPTION πΈ
so basically? this is a simple iterator wrapper for arrays of scalar content, and it's used by TAP::Parser. it wraps your array, it hands you the elements one at a time, and it does it slayfully.
real talk tho: unless you're writing a plugin or subclassing, you probably won't need to use this module directly. it's a behind-the-scenes girlie. main character energy, but off-camera. iykyk.
π METHODS π
π Class Methods
newβ creates an iterator, bestie. it takes one argument: an$array_ref. that's it, that's the whole constructor. feed her an arrayref and she's ready to go. π«Ά
π Instance Methods
nextβ iterate through it, of course. as she should. the classic. βnext_rawβ iterate raw input, without applying any fixes for quirky input syntax. it's giving "no filter, no edits, we're posting it raw". π₯waitβ get the wait status for this iterator. for an array iterator this will always be zero. always. every single time. zero. π§exitβ get the exit status for this iterator. for an array iterator this will always be zero too. twin behavior withwait, honestly kind of obsessed. π
π ATTRIBUTION π
originally ripped off from Test::Harness. yes, literally the word "ripped off" β that's the original's word, not mine, I would never. π
π SEE ALSO π
go read these next, bestie, they're the friend group:
TAP::ObjectTAP::ParserTAP::Parser::Iterator,
and that's the whole page, periodt. this was perl v5.44.0, dated 2026-10-17, and you were reading the 3perl manual for TAP::Parser::Iterator::Array. go forth and iterate something. love u, bye! πβ¨
π¦ where this page comes from
- arch rolling: perl 5.44.0-1 Β· Artistic-1.0-Perl AND GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms