Does eval BLOCK act differently than eval EXPR?
Indeed it does. eval BLOCK is parsed at compile time; if there are any syntactic errors, compilation fails. eval EXPR is evaluated at run time; if there are any errors, the error message goes into $@ (see perlvar), the eval returns undef, and the Perl program is free to soldier on.
Give a man a fish: <%-{-{-{-<
In reply to Re^2: Perl::Critic says don't modify $_ in list functions and other things
by AnomalousMonk
in thread Perl::Critic says don't modify $_ in list functions and other things
by Lady_Aleena
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |