Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^5: how to check syntax of code inside a scalar?

by aquarium (Curate)
on Aug 05, 2010 at 03:39 UTC ( #853016=note: print w/ replies, xml ) Need Help??


in reply to Re^4: how to check syntax of code inside a scalar?
in thread how to check syntax of code inside a scalar?

What if you always inject a

BEGIN {exit}
will it still do the compile step?
the hardest line to type correctly is: stty erase ^H


Comment on Re^5: how to check syntax of code inside a scalar?
Download Code
Re^6: how to check syntax of code inside a scalar?
by snoopy (Deacon) on Aug 05, 2010 at 05:05 UTC
    I't wouldn't do the compile step, but because this happens early, it would pretty well bypass any syntax checking whatsoever:
    perl -c -e 'BEGIN{exit}; BEGIN{print "yay\n"};@&$^^#@!.' -e syntax OK

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://853016]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (7)
As of 2015-07-04 15:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls