> Our logs are filling up with the "use of uninitialized value" warnings. We
> get the warning not only in our own code but also in perl modules. In our
> code they seem to appear anywhere any of the Embperl hashes (fdat,
> udat,...) are used.
Have you any example that show this behaviour (maybe something that I could
try to let it run here)?
> $query = "select * from table where ".join(' AND ',@whereclause);
> OR
> $where = join(' AND ',@whereclause); $query = "select * from table where
> $where";
>
This should only get a warning any element of @whereclause is undefined.
>
> We get the warning with either method. We have also gotten this
> error several times: Database handle destroyed without explicit disconnect
> at /usr/lib/perl5/site_perl/5.005/i386-linux/HTML/Embperl.pm line 1397.
This is issued by DBI if a database handle goes out of scope and you don't
have called disconnect before. The cleanup of Embperl undef's the database
handle in your page and will therefor trigger this warning. Either call
$dbh -> disconnect at the end of your page or use Apache::DBI to keep your
database handle open.
> Does anyone have any ideas how to eliminate the warnings completely or is
> our only option to set Apache error logging to critical?
>
You could set PerlWarn to off (if you are running under mod_perl). I normaly
have it on on my developement machine and off on the production server.
Gerald
>
> Lourdes Herling
> Inventive Communications
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
-------------------------------------------------------------
Gerald Richter ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting
Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz
E-Mail: [EMAIL PROTECTED] Voice: +49 6133 925151
WWW: http://www.ecos.de Fax: +49 6133 925152
-------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]