- or download this
chomp($headerline = <INFILE>);
my @header = split(/\t/,$headerline);
- or download this
my @header = qw(fn ln age);
- or download this
while( <INFILE>) {
chomp;
...
my @columns = split(/\t/,$_);
push @a, { map { $header[$c++] => $_ } @columns };
}