http://qs321.pair.com?node_id=44665


in reply to How do I get the last element of an array?

Here's a rather unconventional way:
push @array, my $val = pop @array;