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

In reply to Re: ignoring errors by Anonymous Monk
in thread ignoring errors by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.