We don't bite newbies here... much | |
PerlMonks |
Re: eval expr & eval BLOCKby ikegami (Patriarch) |
on Aug 02, 2006 at 05:21 UTC ( [id://565162]=note: print w/replies, xml ) | Need Help?? |
eval BLOCK is used to catch exception. It's called try in other languages. It's perfectly safe. eval EXPR is used to compile and execute code. While it does catch exceptions, that's not it's main purpose. It should be avoided as much as possible, and its use should raise big warning flags.
In Section
Seekers of Perl Wisdom
|
|