Maybe starting a thread to test compile the expression. "Return" success or fail to the main then end the thread.
(Maybe I'm misremembering, but I think that threads in Perl work by creating additional PVMs to execute the threads.)
Or try using Safe (which is a core module) to test-compile the expressions.
In reply to Re^3: howto parse (or determining end) of a line of perl
by RonW
in thread howto parse (or determining end) of a line of perl
by perl-diddler
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |