in reply to printing every 2nd entry in a list backwards
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