title: how to skip a particular line in CSV file using perl based on some condition
body: <pre><code>while(my $line=&lt;$data&gt;)
      {
          chomp $line;
          my @fields   = split ",",$line;
          my $type = $fields[2];
          if($type eq "CHILD")
          {
          next;
          }    
          # some code
      }
  </code></pre>
  
  <p>I'm trying to skip the lines which have the 3rd column value as CHILD.. but i'm unable to do so. I'm reading data from a .csv file.</p>