O great monks, I come yet again to drink from the fountain of wisdom.
Again related to this silly debugger Devel::Trepan, I would like to run from inside this perl program perl -c 'code' and sometimes perl -ce 'expression' in order to check validity of various statements and expressions.
This of course works using system() and backtick, but I wonder if there isn't a way inside perl to run a compile check without having to reinvoke perl at the outset. After all, eval() has to go through pretty much the same steps too, and it probably does not use either system or backtick.
Let me finally note that for my purpose using backtick is less code and cleaner to to write than system() with additional code to capture output. I don't want output to be shown. However I have found that backtick sometimes isn't supported well enough on Windows, whereas system() more often is.