http://qs321.pair.com?node_id=723846


in reply to Re: C-style for loop
in thread C-style for loop

No. You could write a C for loop as:

for ($_ = 0; $_ < @values; ++$_) { ... }

but that would be a particularly bad way to do it. A C for loop is generally a poorer solution that a Perl for loop because there are more parts to go wrong. A C style for loop is highly suceptible to off by one errors.


Perl reduces RSI - it saves typing