Help for this page

Select Code to Download


  1. or download this
    # MAIN
    unless ($result = my_sub() ) {
    ...
        # For example ...
        die "Bad data passed in.\n";
    }
    
  2. or download this
    # MAIN
    if (defined ($error = my_sub()) ) {
    ...
        # For example ...
        die "Bad data passed in.\n";
    }