Help for this page

Select Code to Download


  1. or download this
    if ( $outer_cond ) {
        if ( eval { func(); 1 } ) {
            do_something();
        }
    }
    
  2. or download this
    else {
        say "ERR $@";
    }
    
  3. or download this
    use Try::Tiny;
    
    ...
    
        $ok ? do_something() : do_something_different();
    }