in reply to Re: howto parse (or determining end) of a line of perl
in thread howto parse (or determining end) of a line of perl

Yeah thought about that (eval+error->reprompt). Problem w/that is that evaluating it could change the 'environment' such that re-evaluating it later wouldn't work.

(Example in my margins; ;-))

  • Comment on Re^2: howto parse (or determining end) of a line of perl

Replies are listed 'Best First'.
Re^3: howto parse (or determining end) of a line of perl
by RonW (Parson) on Aug 26, 2016 at 19:30 UTC

    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.