1TAP::Parser::Iterator::APrerraly(P3rpomg)rammers RefereTnAcPe::GPuairdseer::Iterator::Array(3pm)
2
3
4
6 TAP::Parser::Iterator::Array - Internal TAP::Parser array Iterator
7
9 Version 3.17
10
12 # see TAP::Parser::IteratorFactory for preferred usage
13
14 # to use directly:
15 use TAP::Parser::Iterator::Array;
16 my @data = ('foo', 'bar', baz');
17 my $it = TAP::Parser::Iterator::Array->new(\@data);
18 my $line = $it->next;
19
21 This is a simple iterator wrapper for arrays of scalar content, used by
22 TAP::Parser. Unless you're subclassing, you probably won't need to use
23 this module directly.
24
26 Class Methods
27 "new"
28
29 Create an iterator. Takes one argument: an $array_ref
30
31 Instance Methods
32 "next"
33
34 Iterate through it, of course.
35
36 "next_raw"
37
38 Iterate raw input without applying any fixes for quirky input syntax.
39
40 "wait"
41
42 Get the wait status for this iterator. For an array iterator this will
43 always be zero.
44
45 "exit"
46
47 Get the exit status for this iterator. For an array iterator this will
48 always be zero.
49
51 Originally ripped off from Test::Harness.
52
54 TAP::Object, TAP::Parser, TAP::Parser::Iterator,
55 TAP::Parser::IteratorFactory,
56
57
58
59perl v5.12.4 2011-06-07 TAP::Parser::Iterator::Array(3pm)