Perl: Array Element Access
Array Element Access
Adding elements to the array is as simple as assigning a new index
Array size grows dynamically
@flintstones = ("fred","wilma");
$flintstones[20] = "Mr. Slate";
The array now contains 21 elements:
"fred", "wilma", 18 NULLS, and "Mr. Slate"