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 ]

Journal of LTjake (4001)

Friday January 30, 2004
09:19 AM

It's the little things...

[ #17103 ]

...that bite you in the ass.

First, I had to throttle back on the cpan-smoking. I had limited it to 10 packages per hour, but even that was killing my system (750 MHz Athlon running Trustix 2.0). So it's at 1 package/hr for now. For some reason it doesn't seem to be sending a report for every tested package -- I haven't attempted to debug that yet.

Also, another ASP gripe is with its if statement handling. Take the following example code:

if not rs.eof and rs( "field" ) <> "value" then
    response.write ","
end if

Where rs is a recordset object.

This code will ALWAYS cause an exception to occur because when a recordset reaches "EOF" you cannot retrieve any values from it. Thus it has to be written as:

if not rs.eof then
    if rs( "field" ) <> "value" then
        response.write ","
    end if
end if


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.
  • Yeah, I hit that crappy VBScript/VB bug back in 97. I happened to be at MS's TechEd in 2000 and had the dubious honor of being able to ask questions of the VB dev team. I asked them about this stupidity and why they didn't do something about it. Their response was that they didn't want to mess up existing code.

    I asked, well then, why didn't you just add a compiler directive for people who'd like to have a programming language that did what a logical mind would expect -- like the pcode/native code compi