* Ovid <[EMAIL PROTECTED]> [2006-09-19 17:05]:
> 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.

Don’t. I used to think it’s cool until I had to actually work
with modules that do this sort of stuff and kept running into
problems.

Disambiguate on the parameter name, not on the type of value.
(Ie. there’d be `source_lines`, `source`, `source_fh` and
`source_file` keys.) No magic, no mysterious bugs, no convoluted
type checking code.

Regards,
-- 
Aristotle Pagaltzis // <http://plasmasturm.org/>

Reply via email to