develooper Front page | perl.qa | Postings from January 2008

Re: Test::Aggregate - Speed up your test suites

Thread Previous | Thread Next
From:
demerphq
Date:
January 2, 2008 09:23
Subject:
Re: Test::Aggregate - Speed up your test suites
Message ID:
9b18b3110801020923q2919e7b2udd22de1ec270441b@mail.gmail.com
On 02/01/2008, Ovid <publiustemp-perlqa3@yahoo.com> wrote:
> --- demerphq <demerphq@gmail.com> wrote:
>
> > Ah this reminds me. One of these days someone needs to write a robust
> > DD output validator. I tried to convince MJD it would be a great
> > example for HOP parser technology and i think I almost succeeded....
>
> I assume this would be so that you could read in DD output and assign
> it to a scalar without eval?

No. Thats called eval STRING. :-)

This would simple parse the output and validate that it is eval STRING is safe.

DD output is highly regular with none of the edge cases that make
parsing perl hard. Thus it should be fairly straight forward to write
code that validates that an arbitrary piece of code conforms to the
constraints of a DD output.

Yves

-- 
perl -Mre=debug -e "/just|another|perl|hacker/"

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About