in reply to
Re: how can I speed up this perl??
in thread
how can I speed up this perl??
Well, we were not given the loop, but if $i increments by one, that is, it counts overlapping pairs, your solution is not equivalent, as it doesn't count overlapping pairs.
Abigail
Comment on
Re: how can I speed up this perl??
In Section
Seekers of Perl Wisdom