![]() |
|
Just another Perl shrine | |
PerlMonks |
Re^2: Limit loopby pryrt (Abbot) |
on Aug 30, 2022 at 21:55 UTC ( #11146518=note: print w/replies, xml ) | Need Help?? |
To nitpick my own: the split-with-LIMIT put all the remaining favorites with ~~~ between (#25-30 in my example) in slot#25, which isn't what I intended.
I changed the limit to 26, then dropped the last element if there were more than 25. The code below shows that failure, plus the fixed version, plus the working counter-based solution.
<Reveal this spoiler or all in this thread>
In Section
Seekers of Perl Wisdom
|
|