Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: eval and return values

by jplindstrom (Monsignor)
on Jan 14, 2009 at 12:44 UTC ( [id://736216] : note . print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    return bar->something();
    
  2. or download this
    my $foo = eval { bar->something() };
    die if $@;    # See "perldoc -f die" for what this does