In Perl, is a while loop generally faster than a for loop?
- by Mike
I've done a small experiment as will be shown below and it looks like that a while loop is faster than a for loop in Perl. But since the experiment was rather crude, and the subject might be a lot more complicated than it seems, I'd like to hear what you have to say about this.
Thanks as always for any comments/suggestions :)
In the following two…