push @array, my $val = pop @array; [download]
In reply to Re: How do I get the last element of an array? by eg in thread How do I get the last element of an array? by clash