in reply to ignoring errors

One of the output errors is:
Sun Mar 8 04:09:33 2009 index3.cgi: DBI::db=HASH(0x11723900)->disconnect invalidates 2 active statement handles (either destroy statement handles or call finish on them before disconnecting) at /usr/lib/perl5/site_perl/5.8.8/Apache/Session/Lock/MySQL.pm line 90, <DATA> line 842.

(Yes I use Apache::Session::MySQL on every page)
I always call finish on all connections made with prepare(), and I always call disconnect() before I ever exit the program, even when I redirect the window, so I do not know why that message is in every page load...

Also, when I take out -w and just run:
#!/usr/bin/perl
the page gets an internal error, even though the output is built with CGI print header()...
so I did this:
#!/usr/bin/perl -a
which I cannot find means anything anywhere and then everything works just fine, fast and error free, including in shell with no errors.

Any advice?
Thanks,
Rick

Replies are listed 'Best First'.
Re^2: ignoring errors
by Anonymous Monk on Mar 08, 2009 at 20:39 UTC
    d just run: #!/usr/bin/perl the page gets an internal error, even though the output is built with
    See CGI Help Guide "3. Is the shebang line pointed at the Perl interpreter?"

    #!/usr/bin/perl -- is easier than messing with dos2unix ... to fix #!/usr/bin/perl^M

Re^2: ignoring errors
by GrandFather (Saint) on Mar 08, 2009 at 23:10 UTC
Re^2: ignoring errors
by ig (Vicar) on Mar 08, 2009 at 23:40 UTC

    Re: the page gets an internal error

    What is the error that appears in your server error log?