Help for this page

Select Code to Download


  1. or download this
    my $success = eval { SubCall($silly); 1 };
    ok !$success && $@ eq $errmsg, 'died with the right error message';
    
  2. or download this
    my $success = try SubCall($silly);
    ok $!.defined && $! eq $errmsg, 'died with the right error message';