laziness, impatience, and hubris | |
PerlMonks |
Re: eval, but syntax-check only -- like perl -cby vladb (Vicar) |
on Apr 24, 2003 at 18:16 UTC ( [id://252967]=note: print w/replies, xml ) | Need Help?? |
What if you try embedding your code snippets inside a subroutine and doing eval on that? This would not cause the code to execute and would give you various warning messages (by inspecting the $@ variable) that you may be looking for?
Update: Missed bbfu's reply, but essentially that's what I was trying to say here ;-) _____________________
In Section
Seekers of Perl Wisdom
|
|