Help for this page

Select Code to Download


  1. or download this
    my @arr1;
    while ( <> ) {
        my @arr = split ',', $_;
        ( push @arr1, $arr[0] ) if  $arr[2] eq 'particular';
    }
    
  2. or download this
    my @arr1 = grep { @{$_}[2] =~ /particular/ } @arr;
    
  3. or download this
    my @arr1 = grep { %{$_}{'FILETYPE'} eq 'particular' } @arr;