programming-examples/perl/Array/Change array length by adding new element to an array.pl
2019-11-15 12:59:38 +01:00

5 lines
84 B
Raku

@array = (1, 2, 3);
$array[5] = "Here is a new element!";
print "$array[5]\n";