in reply to Intercepting compile time blocks like BEGIN {}
automated testing if code can be safely syntax checked without executing code
Actually, disabling BEGIN blocks would greatly reduce the value of s syntax check. For example, it would
Also, it would prevent syntax checking a module as that requires executing require.
EPIC uses PPI to parse the script without executing anything. It does a great job of finding errors reliably.
Anyway, I don't see the problem. If you've installed the module, you've already accepted its evilness. I don't see what good a syntax check of an untrusted module would do. Just like you wouldn't execute it, don't do a syntax check on it.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Intercepting compile time blocks like BEGIN {}
by LanX (Saint) on Aug 09, 2010 at 21:24 UTC | |
by ikegami (Patriarch) on Aug 09, 2010 at 22:00 UTC | |
by LanX (Saint) on Aug 09, 2010 at 22:04 UTC | |
by ikegami (Patriarch) on Aug 09, 2010 at 23:13 UTC | |
by LanX (Saint) on Aug 09, 2010 at 23:46 UTC | |
|