in reply to Re^3: How to do perl -c inside perl?
in thread How to do perl -c inside perl?
> Also, I don't understand what you mean by thinking of something "more elaborate"
well for instance, you won't catch all possible syntax errors:
lanx:/tmp$ cat tst.pl }; $hash = { lanx:/tmp$ perl -c /tmp/tst.pl Unmatched right curly bracket at /tmp/tst.pl line 1, at end of line syntax error at /tmp/tst.pl line 1, near "}" Missing right curly or square bracket at /tmp/tst.pl line 1, at end of + line syntax error at /tmp/tst.pl line 1, at EOF /tmp/tst.pl had compilation errors. lanx:/tmp$ perl $code = '}; $hash = {'; eval "sub { $code } "; print $@; __END__ lanx:/tmp$ perl $code = '}; $hash = '; eval "sub { $code } "; print $@; __END__ Unmatched right curly bracket at (eval 1) line 1, at end of line syntax error at (eval 1) line 1, at EOF
you might be interested in my slides from YAPC::EU
http://act.yapc.eu/ye2012/talk/4204
unfortunately ATM I have no time to elaborate deeper... :(
Cheers Rolf
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Misc thoughts on YAPL:EU talk "From Debugger to Interactive Shell" (Was Re^5: How to do perl -c inside perl?)
by rockyb (Scribe) on Sep 19, 2012 at 00:16 UTC | |
by LanX (Saint) on Sep 19, 2012 at 09:12 UTC |