in reply to Re: Best way to read in an XbyX table into a Hash{Key}{Key2}[value] structure
in thread Best way to read in an XbyX table into a Hash{Key}{Key2}[value] structure
my (undef, @col) = split /\s+/, <DATA>; # Column namesWhen splitting on \s+ instead of \t, the first header value, 'Amino Acid Switch Probabiities', will be wrongly split into the @col array. You need to split on tabs to prevent this from happening.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Best way to read in an XbyX table into a Hash{Key}{Key2}[value] structure
by rjt (Curate) on Aug 07, 2013 at 22:09 UTC |