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 with wait, 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::Object
  • TAP::Parser
  • TAP::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