Help for this page

Select Code to Download


  1. or download this
    # is_one_of($val, \@list);
    sub is_one_of {
    ...
        diag "never saw [$val] in [@$list]";
        fail($test_name);
    }
    
  2. or download this
    is_one_of($var, [ qw(a b) ]);