{
    "mode": "perldoc",
    "parameter": "TAP::Parser::Iterator::Array",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/TAP%3A%3AParser%3A%3AIterator%3A%3AArray/json",
    "generated": "2026-06-09T13:21:30Z",
    "synopsis": "use TAP::Parser::Iterator::Array;\nmy @data = ('foo', 'bar', baz');\nmy $it   = TAP::Parser::Iterator::Array->new(\\@data);\nmy $line = $it->next;",
    "sections": {
        "NAME": {
            "content": "TAP::Parser::Iterator::Array - Iterator for array-based TAP sources\n",
            "subsections": []
        },
        "VERSION": {
            "content": "Version 3.43\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "use TAP::Parser::Iterator::Array;\nmy @data = ('foo', 'bar', baz');\nmy $it   = TAP::Parser::Iterator::Array->new(\\@data);\nmy $line = $it->next;\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This is a simple iterator wrapper for arrays of scalar content, used by TAP::Parser. Unless\nyou're writing a plugin or subclassing, you probably won't need to use this module directly.\n",
            "subsections": []
        },
        "METHODS": {
            "content": "",
            "subsections": [
                {
                    "name": "Class Methods",
                    "content": "\"new\"\nCreate an iterator. Takes one argument: an $arrayref\n"
                },
                {
                    "name": "Instance Methods",
                    "content": "\"next\"\nIterate through it, of course.\n\n\"nextraw\"\nIterate raw input without applying any fixes for quirky input syntax.\n\n\"wait\"\nGet the wait status for this iterator. For an array iterator this will always be zero.\n\n\"exit\"\nGet the exit status for this iterator. For an array iterator this will always be zero.\n"
                }
            ]
        },
        "ATTRIBUTION": {
            "content": "Originally ripped off from Test::Harness.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "TAP::Object, TAP::Parser, TAP::Parser::Iterator,\n",
            "subsections": []
        }
    },
    "summary": "TAP::Parser::Iterator::Array - Iterator for array-based TAP sources",
    "flags": [],
    "examples": [],
    "see_also": []
}