Help for this page

Select Code to Download


  1. or download this
    use 5.010;
    
    ...
    else {
        say "All numbers are even!";
    }
    
  2. or download this
    my @nums = (-11, -13, 4);
    my @candidates = sort { $a <=> $b } grep $_ % 2, @nums;
    ...
    } else {
        say "They're all even!";
    }