in reply to Re: (Ovid) Re: Newbie realisation about
in thread Newbie realisation about
People who use C-style loops, whether it be in C or another language, typically have off-by-one errors as their most common type of bug. By simply switching to Perl-style loops when programming in Perl, you kill the opportunity for this mistake, and therefore will have fewer bugs to track down.
I have seen this happen in enough cases that I can't accept the argument that it is simply personal preference. When you have a choice, use the Perlish looping mechanism. The time saved in avoiding debugging will quickly make this pay for itself.
|
|---|