Would be the solution there I guess@last_n=@source[(@source-$n)..$#source]if ($n<=@scource);
In reply to Re^3: What’s the best way to get the last N elements of a Perl array?
by Utilitarian
in thread What’s the best way to get the last N elements of a Perl array?
by vinoth.ree
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |