deprecated has asked for the wisdom of the Perl Monks concerning the following question:
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.sub myFunc { $foo = shift; $foo++ $foo; }
Something like this:
So, um, how do I make sure that the programmers using my API are not giving me bogus code?$obj -> addFunc( \&myFunc );
thanks,
brother dep
--
Laziness, Impatience, Hubris, and Generosity.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: evaluating syntax of code blocks (code)
by tachyon (Chancellor) on Jul 02, 2001 at 09:22 UTC | |
by jplindstrom (Monsignor) on Jul 03, 2001 at 01:57 UTC | |
by tachyon (Chancellor) on Jul 03, 2001 at 04:06 UTC | |
Re: evaluating syntax of code blocks (code)
by kschwab (Vicar) on Jul 02, 2001 at 05:32 UTC | |
Re: evaluating syntax of code blocks (code)
by MeowChow (Vicar) on Jul 02, 2001 at 06:52 UTC | |
by princepawn (Parson) on Jul 02, 2001 at 06:55 UTC | |
by MeowChow (Vicar) on Jul 02, 2001 at 07:01 UTC | |
Re: evaluating syntax of code blocks (code)
by TheoPetersen (Priest) on Jul 02, 2001 at 05:39 UTC | |
Re: evaluating syntax of code blocks (code)
by mikeB (Friar) on Jul 02, 2001 at 18:52 UTC | |
A reply falls below the community's threshold of quality. You may see it by logging in. |