in reply to Re: Perl::Critic says don't modify $_ in list functions and other things
in thread Perl::Critic says don't modify $_ in list functions and other things
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: <%-{-{-{-<
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Perl::Critic says don't modify $_ in list functions and other things
by Lady_Aleena (Priest) on Jul 09, 2020 at 23:09 UTC | |
by hippo (Bishop) on Jul 10, 2020 at 08:22 UTC |
In Section
Seekers of Perl Wisdom