http://www.perlmonks.org?node_id=316411


in reply to Simple array question

you want scalar not length.

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