Keep It Simple, Stupid | |
PerlMonks |
evaluating syntax of code blocks (code)by deprecated (Priest) |
on Jul 02, 2001 at 05:12 UTC ( [id://93089]=perlquestion: print w/replies, xml ) | Need Help?? |
deprecated has asked for the wisdom of the Perl Monks concerning the following question:
Lets say I have this code:
See the small syntax goof? I'm missing a semi. I am making an object which can have code blocks added to it for later execution. But I want to check those code blocks to make sure they are good. Something like this: So, um, how do I make sure that the programmers using my API are not giving me bogus code?
thanks,
--
Back to
Seekers of Perl Wisdom
|
|