TAP::Pa...::Array(3pm)

🌸 NAME 🌸

okay so this page is the manual for TAP::Parser::Iterator::Array(3pm) β€” from the Perl Programmers Reference Guide, bestie 🫢 The header does the little truncation thing and shows it as TAP::Pa...::Array(3pm), but the full name is TAP::Parser::Iterator::Array, and it is literally an iterator for array-based TAP sources πŸ’…

✨ VERSION ✨

Version 3.50 πŸŽ€

πŸ¦‹ SYNOPSIS πŸ¦‹

use TAP::Parser::Iterator::Array;
my @data = ('foo', 'bar', baz');
my $it   = TAP::Parser::Iterator::Array->new(\@data);
my $line = $it->next;

🌈 DESCRIPTION 🌈

This is a simple iterator wrapper for arrays of scalar content, used by TAP::Parser. Unless you're writing a plugin or subclassing, you probably won't need to use this module directly. It's giving backstage-pass energy β€” important, but not the main character for most people πŸ‘‘βœ¨

πŸ’– METHODS πŸ’–

🧸 Class Methods

✨ new

Create an iterator. Takes one argument: an $array_ref πŸŽ€

πŸͺ„ Instance Methods

⭐ next

Iterate through it, of course. Slay ✨

πŸŒ€ next_raw

Iterate raw input without applying any fixes for quirky input syntax. No touch-ups, no filter β€” raw raw πŸ’…

⏳ wait

Get the wait status for this iterator. For an array iterator this will always be zero. Zero, periodt 🫢

πŸšͺ exit

Get the exit status for this iterator. For an array iterator this will always be zero. Also zero, bestie πŸ’€

πŸŽ€ ATTRIBUTION πŸŽ€

Originally ripped off from Test::Harness. The lore is the lore πŸ“œ

πŸ‘€ SEE ALSO πŸ‘€

  • TAP::Object
  • TAP::Parser
  • TAP::Parser::Iterator

that's the squad, iykyk πŸ¦‹


source/version: perl v5.42.3 Β· date: 2026-11-03 β€” bye bestie, go slay some TAP πŸ’–
πŸ“¦ where this page comes from