Help for this page

Select Code to Download


  1. or download this
    unless (open(INFILE, $csv_filename)){
        print "Cannot open file \"$csv_filename\"\n";
        exit;
      }
    
  2. or download this
    open my $inFile, '<', $csv_filename or die qq{Cannot open file "$csv_f
    +ilename"\n};
    
  3. or download this
    foreach $line (<INFILE>) {
    
  4. or download this
    while (defined (my $line = <$inFile>)) {
    
  5. or download this
            my @field = $csv->fields;
            my $count = 0;
    ...
                ++$count;
                $d_array[$line_number][$count] = $column;
            }
    
  6. or download this
            $d_array[$line_number] = [$csv->fields ()];