in reply to Re^2: What’s the best way to get the last N elements of a Perl array?
in thread What’s the best way to get the last N elements of a Perl array?

@last_n=@source[(@source-$n)..$#source]if ($n<=@scource);
Would be the solution there I guess
  • Comment on Re^3: What’s the best way to get the last N elements of a Perl array?
  • Download Code