$info[$position] gives the array element at $position. Trying to combine those 2 results in a syntax error.
It might be a good idea to use different names for your info scalar variable and info array variable.
Maybe you want:
my $len = length $info[$position];
In reply to Re: Assigning the Length of an Array to a Variable
by toolic
in thread Assigning the Length of an Array to a Variable
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |