How do i use the push operator in perl code?
-
Also, see What do the pop & push operators do in perl?
Perl code. push(array_name, new_element)
push(@animals, snake);
snake gets added to the end of the array.
© Lightnetics 2024