in reply to embedded perl: check for compile errors without executing

I am experimenting my own embedded perl solution with precompile system and I really can catch syntax errors before the code is actually executed. It is also possible to run the script in a "sandbox" to catch runtime warnings.

I think you have to split the process in two phases. Compile an execute to achieve your result. See http://www.perlmonks.org/?parent=821564;node_id=3333 for reference.

  • Comment on Re: embedded perl: check for compile errors without executing

Replies are listed 'Best First'.
Re^2: embedded perl: check for compile errors without executing
by Anonymous Monk on Feb 08, 2010 at 09:39 UTC
    Um, BEGIN/USE happens (is executed) before INIT/CHECK/RUN time ... some ideas Safe::World