![]() |
|
Perl: the Markov chain saw | |
PerlMonks |
Re^2: how to check syntax of code inside a scalar?by tjking (Novice) |
on Aug 04, 2010 at 19:42 UTC ( #852954=note: print w/replies, xml ) | Need Help?? |
Uggh, it's a bit shortsighted that there's no built-in function for this. However, after playing a bit, I've found that this can be simulated without having to actually execute the scalar's contents by pre-pending "return;" and testing with eval:
Thanks!
In Section
Seekers of Perl Wisdom
|
|