Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

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

by svenXY (Deacon)
on Apr 20, 2009 at 11:40 UTC ( [id://758678]=note: print w/replies, xml ) Need Help??


in reply to Re: 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?

nope, does not work for me: Modification of non-creatable array value attempted, subscript -9 at array_ende.pl line 23. whereas it does work as a two-liner (see above)
Regards,
svenXY
  • Comment on Re^2: What’s the best way to get the last N elements of a Perl array?
  • Download Code

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (4)
As of 2024-04-24 20:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found