Help for this page

Select Code to Download


  1. or download this
    my @True;
    for my $Element (@Array){
    ...
        push @True, $Element;
      }
    }
    
  2. or download this
    my @True = grep {$_} @Array;
    
  3. or download this
    #(For every fourth element in @List)
    grep {not ++$i % 4} @List;
    
    #(To skip every fifth element)
    grep {++$i % 5} (1..50)