Note that for (;$i<5007;$i++) is also valid.
Update:
While this is considered "very un-Perl-ish", it is very common in C/C++ and even C# (though both C++ and C# also have for-each syntax, as well). Therefore, there are many developers who are more comfortable with this form.
In reply to Re^2: Useless use of private variable in void context at
by RonW
in thread Useless use of private variable in void context at
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |