|
|
|
Clear questions and runnable code get the best and fastest answer |
|
| PerlMonks |
Re: Efficient walk/iterate along a stringby SimonClinch (Chaplain) |
| on Nov 23, 2010 at 10:46 UTC ( #873159=note: print w/ replies, xml ) | Need Help?? |
|
It's probably faster to use the C-style for loop, On the other hand, you might even want to erm correction, I mean do the substring extraction from C not the processing you do with it. Although the perl loop will indeed consume less resources if C-style instead of forcing a huge list to be constructed. One world, one people
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||