----- Original Message ----
From: Shlomi Fish <[EMAIL PROTECTED]>

>    my $parser =
>        TAPx::Parser->new(
>            {
>                stream => TAPx::Parser::Iterator->new($test_output_orig),
>            }
>        );

I'd recommend trying this:

  my $parser = TAPx::Parser->new( { source => $source } );

I did that to simplify building parsers and it's new as of 0.30.  $source can 
be one of:

1.  An array reference of TAP lines.
2.  A complete string of TAP output.
3.  A filehandle.
4.  The path to an existing file.

The original interface is still available with a desire to not break people's 
code (plus, I use it internally).

So far it seems to work well, with the only caveat being that filenames are not 
permitted to have newlines in them (I forgot to document that).  Thus, if the 
iterator changes in the future, it hopefully won't break your code!

> BTW, the documentation for the interface that the "stream => " argument 
> expects on the TAPx::Parser pod may be misleading:

Thanks.  I need to clean that up, too!

Cheers,
Ovid




Reply via email to