How do i use the pop operator in perl code?
-
Also, see What do the pop & push operators do in perl?
Perl Code.
$select = pop(@animals);
$select has value monkey
@animals has values lion, tiger, bearThe element monkey is removed.
© Lightnetics 2024