Help for this page

Select Code to Download


  1. or download this
    my %b_value;
    @b_value{@b_array}=();
    my @c_array = grep exists $b_value{$_}, @a_array;
    
  2. or download this
    my $i;
    while($i < $#array/2) {
        my $copy = $array[$i];
    ...
        $array[-$i] = $copy;
        ++$i;
    }