Help for this page

Select Code to Download


  1. or download this
    @output = @input[ grep $_ & 1, 0 .. $#input];
    
  2. or download this
    ($mod, $val) = (2, 1);
    @output = @input[ grep $_ % $mod == $val, 0 .. $#input];