Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

jplindstrom (594)

  (email not shown publicly)

Journal of jplindstrom (594)

Sunday November 03, 2002
01:40 PM

C-style loops considered harmfull

[ #8744 ]

So for the first time in thousands and thousands of lines of code I use a C-style loop because that's the way to go when fetching mail with Mail::POP3Client, and guess what? I'm screwed with an off-by-one error.

It's probably because I'm sloppy, and I'm unused to it. But I even remember being careful with the condition when I wrote it. Um, at least the first time.

The silver lining: yes, I caught it with a test that changed my default "fetch at most n mails" property.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.