http://www.perlmonks.org?node_id=310047


in reply to Re: Re: Style Point: Catching eval { } errors
in thread Style Point: Catching eval { } errors

perldoc -q eval
In both forms (eval EXPR / eval BLOCK), the value returned is the value of the last expression evaluated inside the mini-program; a return statement may be also used, just as with subroutines. The expression providing the return value is evaluated in void, scalar, or list context, depending on the context of the eval itself. See "wantarray" for more on how the evaluation context can be determined.
  • Comment on Re: Re: Re: Style Point: Catching eval { } errors