Problems? Is your data what you think it is? | |
PerlMonks |
Re: What’s the best way to get the last N elements of a Perl array?by svenXY (Deacon) |
on Apr 20, 2009 at 10:34 UTC ( [id://758662]=note: print w/replies, xml ) | Need Help?? |
Note:If the array has less than N, I don't want a bunch of undefs in the return value.
Seems like you already tried something or at least thought about your task. Was there any outcome (a.k.a. code) that you can show us? Regards,svenXY
In Section
Seekers of Perl Wisdom
|
|