good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Re: Can you check the syntax of a eval() before executing it?by Chmrr (Vicar) |
on May 06, 2002 at 20:28 UTC ( [id://164442]=note: print w/replies, xml ) | Need Help?? |
This has been discussed previously here at the monastery, but I can't seem to find where. The general consensus is that it is not possible. The perl -c trick will not prevent code from being executed; see the following, for example:
perl -pe '"I lo*`+$^X$\"$]!$/"=~m%(.*)%s;$_=$1;y^`+*^e v^#$&V"+@( NO CARRIER'
In Section
Seekers of Perl Wisdom
|
|