Help for this page

Select Code to Download


  1. or download this
    sub my_sub {
       # do stuff
       eval { potential icky bit };
    ...
    unless ( $result = my_sub() ) {
       # use $@ to figure out what to do
    }
    
  2. or download this
    unless ( $result = my_sub() ) {
       # handle error condition based on error var
    }