Q&A > arrays > How do I get the last element of an array? - Answer contributed by eg
push @array, my $val = pop @array;
PerlMonks, of course - how could you ask?
Games & puzzles
Arts & music
Whichever pays my bills
Results (209 votes). Check out past polls.