Help for this page

Select Code to Download


  1. or download this
    ($success, $err_msg) = my_sub();
    unless ($success) {
      # handle error condition using $err_msg
    }
    
  2. or download this
    unless ( my_sub() ) {
       # handle error condition
    }
    
  3. or download this
    unless ( $result = my_sub() ) {
       # handle error condition
    }