What about something as simple as calling the perl interpreter with a system call? Something as simple as this:
qx {perl -c $function_to_be_executed}
It's clumsy, yes, but it should work.
- Ozymandias | [reply] [d/l] |
| [reply] |
I also know that the only thing that can determine if some sequence of characters is valid Perl is Perl itself, but the main idea is to have some heuristics to format posts by people who don't know how to use the site ...
This is not thought as a general Perl formatter, but only for quick weeding of AM posts.
| [reply] |