Beefy Boxes and Bandwidth Generously Provided by pair Networks
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??


in reply to What’s the best way to get the last N elements of a Perl array?

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
  • Comment on Re: What’s the best way to get the last N elements of a Perl array?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://758662]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (5)
As of 2024-04-19 07:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found