You have a problem in your data. Ignoring the first column, you have seven columns of headers but only six columns of actual data:
G1 G1 G1 G1 G2 G2 G3 W W M W W M W W W W W W ...
Update: I see now that anonymonk had already spotted this...
Update2: Corrected miscount
In reply to Re: how to sum over rows based on column headings in perl
by Not_a_Number
in thread how to sum over rows based on column headings in perl
by angerusso
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |