in reply to Re^2: Can I speed this up? (repetitively scanning ranges in a large array)
in thread Can I speed this up? (repetitively scanning ranges in a large array)
I would have to remember converting between the two systems each time I input/output and from experience, I quickly forget doing that...
You say it's obvious, then you keep talking as if a circle has a start.
No conversion is necessary. Just start at index one of the array for the item labeled 1, then keep going for 100 elements, which is going to end you at element zero of the array.
for (1..100) { print $result[$_ % 100]; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Can I speed this up? (repetitively scanning ranges in a large array)
by daverave (Scribe) on Nov 02, 2010 at 19:32 UTC | |
by ikegami (Patriarch) on Nov 02, 2010 at 22:52 UTC | |
by daverave (Scribe) on Nov 03, 2010 at 06:43 UTC | |
by ikegami (Patriarch) on Nov 03, 2010 at 19:07 UTC |