Help for this page

Select Code to Download


  1. or download this
    my @header=qw/studentrecord primary_ins primary_ins_type/;
    my @wanted_fields = @header;
    ...
        my @wanted_data = map {$row{$_}} @wanted_fields;
        print join(",", @wanted_data), "\n";
    }
    
  2. or download this
    open (FH, "< sample_1_header.csv") or die "Can't open file for read: $
    +!";
    my @header=<FH>;
    ...
    }
    $i++;
    }