Perl | Array pop() Function
pop() function in Perl returns the last element of Array passed to it as an argument, removing that value from the array. Note that the value passed to it must explicitly be an array, not a list. Syntax: pop(Array) Returns: undef if list is empty else last element from the array. Example 1: perl #!/