TAPx::Parser::Iterator - Internal TAPx::Parser Iterator
Version 0.41
use TAPx::Parser::Iterator; my $it = TAPx::Parser::Iterator->new(\*TEST); my $it = TAPx::Parser::Iterator->new(\@array); my $line = $it->next; if ( $it->is_first ) { ... } if ( $it->is_last ) { ... }
Originally ripped off from Test::Harness.
Test::Harness
FOR INTERNAL USE ONLY!
This is a simple iterator wrapper for arrays and filehandles.
Create an iterator.
Iterate through it, of course.
Returns true if on the first line. Must be called after next().
next()
Returns true if on or after the last line. Must be called after next().
To install TAPx::Parser, copy and paste the appropriate command in to your terminal.
cpanm
cpanm TAPx::Parser
CPAN shell
perl -MCPAN -e shell install TAPx::Parser
For more information on module installation, please visit the detailed CPAN module installation guide.