On 02/01/2008, Ovid <[EMAIL PROTECTED]> wrote:
> --- demerphq <[EMAIL PROTECTED]> 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/"

Reply via email to