Add elements to @array by referring to nonexistent element 3. : Array Assignmengt « Array « Perl
- Perl
- Array
- Array Assignmengt
Add elements to @array by referring to nonexistent element 3.
# There are now 4 elements in the array. Elements 1 and 2 have undefined values.
$array[ 3 ] = "birthday";
print "@array\n\n";
Related examples in the same category