|
|
| We don't bite newbies here... much | |
| PerlMonks |
Re: Limit loopby johngg (Canon) |
| on Aug 30, 2022 at 21:59 UTC ( [id://11146520]=note: print w/replies, xml ) | Need Help?? |
|
Truncate the @favs array before entering the loop if it has more than 25 elements. Setting $#favs to 24 is setting the index of the last element so that the array now has 25 elements, 0 through 24.
I hope this is helpful. Cheers, JohnGG
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||