![]() |
|
XP is just a number | |
PerlMonks |
Re: printing every 2nd entry in a list backwardsby KurtZ (Pilgrim) |
on May 19, 2017 at 12:01 UTC ( #1190601=note: print w/replies, xml ) | Need Help?? |
TIMTOWTDI
You could use 2 pop in loop to extract the last 2 elements of an array. Similarly splice You can also count an index backwards.
In Section
Seekers of Perl Wisdom
|
|