in reply to Re: Useless use of private variable in void context at
in thread Useless use of private variable in void context at

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.

Replies are listed 'Best First'.
Re^3: Useless use of private variable in void context at
by GrandFather (Saint) on Nov 24, 2014 at 20:21 UTC

    Also needlessly obscure and error prone compared to a Perl loop (for (1 .. 5007) {...}) used for performing some number of iterations of a loop.

    Perl is the programming world's equivalent of English