Try this a moment:
foreach my $val ( @le_data ) { my @line = split /\s+/, $val; my width = 11; ...
Your actual problem is that arrays are zero-indexed, not one-indexed, but the above is a much more Perlish way to loop through all the values of the array.
In reply to Re: Parsing in perl
by DStaal
in thread Parsing in perl
by Nalababu
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |