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


in reply to Re^3: Help with arrays
in thread Help with arrays

Perl is a pretty much untyped, dynamic language. When declaring an array in Perl you don't need to specify how big you intend it to be or what it contains. It will expand and shrink at runtime depending what you do with it.
I imagine the problem is aimed at illustrating this and ensuring that you know how to handle it.
So, all arrays are of unknown length unless you know what you put in them or you find out with:
$size = @nums; or $last_index = $#nums