"be consistent" | |
PerlMonks |
Re: Re: eval, but syntax-check only -- like perl -cby diotalevi (Canon) |
on Apr 24, 2003 at 20:03 UTC ( [id://252986]=note: print w/replies, xml ) | Need Help?? |
There are intelligent ways to use B::Deparse but none of them apply to checking perl for syntactical correctness. The canonically correct way is to invoke the parser somehow whether through eval "sub { $code }" or through perl -c tempfile.txt.
In Section
Seekers of Perl Wisdom
|
|