TAP::Parser::Iterator - Internal TAP::Parser Iterator
Version 0.54
use TAP::Parser::Iterator; my $it = TAP::Parser::Iterator->new(\*TEST); my $it = TAP::Parser::Iterator->new(\@array); my $line = $it->next;
Originally ripped off from Test::Harness.
FOR INTERNAL USE ONLY!
This is a simple iterator wrapper for arrays and filehandles.
new
my $iter = TAP::Parser::Iterator->new( $array_reference ); my $iter = TAP::Parser::Iterator->new( $filehandle );
Create an iterator.
next
while ( my $item = $iter->next ) { ... }
Iterate through it, of course.
next_raw
while ( my $item = $iter->next_raw ) { ... }
Iterate raw input without applying any fixes for quirky input syntax.
To install TAP::Parser, copy and paste the appropriate command in to your terminal.
cpanm
cpanm TAP::Parser
CPAN shell
perl -MCPAN -e shell install TAP::Parser
For more information on module installation, please visit the detailed CPAN module installation guide.