|Keep It Simple, Stupid|
Re^4: How to do perl -c inside perl?by BrowserUk (Pope)
|on Aug 29, 2012 at 17:34 UTC||Need Help??|
I'm not sure that I see your use case as warranting the check -- I doubt you can report the error any better than perl could when it runs it -- but may be I'm just not getting the full picture.
If your use case is only ever going to accept strings from a programmer via the command line -- where he could easily just type whatever bad stuff he might give you directly into the command line, or perl, then you perhaps don't need to worry about it. Your call.
But there has been someone (may be you?) asking about accepting code via a web-server and then running it, hence my caution.
With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.