push
Appends one or more values to the end of an array, growing it as needed.
Treats the first argument as an array and appends all subsequent arguments to it. Array arguments are flattened (their elements are pushed individually, not as nested arrays). Returns the new number of elements in the array.
Synopsis
push @array, $value;
push @array, @more_values;
push @array, $v1, $v2, $v3;
my $new_len = push @array, $value;
Implementation Notes
perl5 (
pp.c:6351): mark-based. First arg after mark is the array, rest are values to push. Returns new array length.