Y
Hacker News
new
|
ask
|
show
|
jobs
by
rjbond3rd
4664 days ago
"perl -c" checks syntax without executing. (Try it and you'll see a lot of syntax errors using perl 5, so no chance of it executing -- but even if you run it under perl 3, you have nothing to fear.)
1 comments
cdman
4664 days ago
Careful with that. perl -c still runs the BEGIN blocks so don't rely on it for safety (ie. if you're handling untrusted code).
link