Some general points which do not address the OPed question (BTW: I think hippo is on the mark with the observation that $i3 is never used), but may be of interest:
This can, IMHO, be expressed with more clarity/concision/maintainability with array slices (see Slices in perldata) (untested):$textarray[$iwrdnum][1] = $tagfields[0]; #the ... $textarray[$iwrdnum][2] = $tagfields[1]; $textarray[$iwrdnum][3] = $tagfields[2]; $textarray[$iwrdnum][4] = $tagfields[3]; $textarray[$iwrdnum][5] = $tagfields[4];
In reply to Re: looping in 2d array
by AnomalousMonk
in thread looping in 2d array
by Linguist
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |