in reply to Puzzled by web

Call me old-fashioned, but if I had a problem like this, I would see what variable it is that's undefined at line 124, then work my way backwards to discover where it's supposed to get set, and then investigate why it isn't gettting set there. At that point I'd either have found my answer, or be in a more informed position to then ask for help.

For the record, there are lots of things that will be different when running in a CGI environment as opposed to from the command-line; you may have a different current directory, different environment variables, different stdin/stdout etc, different authorizations,....

Replies are listed 'Best First'.
Re: Re: Puzzled by web
by john.goor (Acolyte) on May 24, 2004 at 11:20 UTC

    Sorry monks, my fault.

    It took me 3 weeks to find out that the problem had to do with field-length. Line 124 was the closing of a recordset.

    I use Win32::Loginname, which usually is my 8-character uid from the command-line, but run from a browser it is a 25-character IWAM-blablabla IIS uid. This uid will be written to a 8-char field in the database, so an error occurs during the execution of the INSERT statement which finally results in the error of the "Close".

    Edited by Chady -- fixed formatting.