in reply to What restrictions are there on code execution when running perl in syntax check mode?
And if there are none, e.g. anything can be called, is this safe? What precautions do people use to make sure that code (especially someone else's code) is safe to syntax check?One should realize, due to the nature of Perl, that you in general you cannot do a syntax check and get a useful answer without executing code. And you cannot determine whether you can do a useful syntax check without running code.
Having said that, code I either consider safe, or not safe. If I don't consider it safe, I don't care whether it has syntax errors or not. It's unsafe. I don't want to run it. Period. If code is "safe", it's not more (or less) safe to check its syntax.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: What restrictions are there on code execution when running perl in syntax check mode?
by ELISHEVA (Prior) on Feb 04, 2009 at 11:23 UTC | |
by BrowserUk (Patriarch) on Feb 04, 2009 at 11:34 UTC | |
by JavaFan (Canon) on Feb 04, 2009 at 12:32 UTC | |
by gokuraku (Monk) on Feb 04, 2009 at 16:09 UTC | |
by ELISHEVA (Prior) on Feb 04, 2009 at 16:54 UTC |