Help for this page

Select Code to Download


  1. or download this
    for $item (@list) {
      next if $item == 2 or $item == 4;
      ... rest of processing ..
    }
    
  2. or download this
    my @newlist = grep { $_ != 2 and $_ != 4 } @list;