Do you know where your variables are? | |
PerlMonks |
Re: Manipulating Array Indexesby Corion (Patriarch) |
on Sep 07, 2020 at 16:16 UTC ( [id://11121444]=note: print w/replies, xml ) | Need Help?? |
If you want array elements, why do you use pop ? This modifies the array in question... Maybe you can show us your code that "almost" works and tell us how it fails for you. The simplest approach to get the next three items after a given index I can think of is:
... but maybe I have not understood your requirements well...
In Section
Seekers of Perl Wisdom
|
|