in reply to Simple array question

you want scalar not length.

you use length to count the number of characters in a string.