If I had a TSV file to read into an AoA I would let a module do the heavy work:
#!/usr/bin/env perl use strict; use warnings; use Text::CSV_XS 'csv'; use feature 'say'; my $aoa = csv (in => 'gene.txt', sep => "\t"); my $header = shift @$aoa; say join '; ', @$_ for @$aoa;
In reply to Re: storing a file in 2d array
by hippo
in thread storing a file in 2d array
by shabird
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |