in reply to What’s the best way to get the last N elements of a Perl array?
@last_n = grep { defined($_) } @last_n; [download]