In a scalar context, it returns the number of things found. Note that the added elements retain their original order. The list is not in any particular order. As with the string functions, only a few of these functions will be explored. This is called iterating over the elements of the array.
Iteration is a synonym for looping.
This ability lets you work with key, value pairs in a quick easy manner. It needs a little help from some Perl control statements. For this example, we'll use the while loop to print an associative array. Therefore, you can use it as the basis of the while 's condition. When the end of the array is reached, the program continues execution after the closing curly brace.