Help for this page

Select Code to Download


  1. or download this
    @array = (
        [ 1, 2 ],
        [ 3, 4 ],
        [ 2, 5 ],
    );
    
  2. or download this
    $temp   = 3;
    $temp_1 = 4;
    @matching_rows = grep { $_->[0] == $temp && $_->[1] == $temp_1 } @arra
    +y;