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. We have put if defined or if !defined to try to
eliminate these warnings. We still get a few, although not as many as
before. We are also getting a "useless use of a variable in void context"
warning. We have tried to figure out what is causing this to no avail.
It always occurs on a line where a string is being assigned to a variable
in order to build a mysql query. We build a where clause prior to the
line and use that in the query. We have tried both concatenation and
using the variable name of the where clause in the assignment.
For example:
$query = "select * from table where ".join(' AND ',@whereclause);
OR
$where = join(' AND ',@whereclause); $query = "select * from table where
$where";
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.
Does anyone have any ideas how to eliminate the warnings completely or is
our only option to set Apache error logging to critical?
Lourdes Herling
Inventive Communications
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]