You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by Joe Lauer <jo...@rootlevel.com> on 2000/08/31 06:58:24 UTC

Apache DBI error

Has anyone ever seen this:

Starting httpd.....defined(@array) is deprecated at
/usr/local/lib/perl5/site_perl/5.6.0/Apache/DBI.pm line 135.
        (Maybe you should just omit the defined()?)


Know of any way to fix it?

______________________________________________________
joe lauer                      rootlevel
product developer              743 beaubien, suite 300
p.313.961.4407 x302            detroit, mi 48226
f.313.961.4568                 www.rootlevel.com

For additional commands, e-mail: embperl-help@perl.apache.org


Re: Apache DBI error

Posted by Gerald Richter <ri...@ecos.de>.
> Has anyone ever seen this:
>
> Starting httpd.....defined(@array) is deprecated at
> /usr/local/lib/perl5/site_perl/5.6.0/Apache/DBI.pm line 135.
>         (Maybe you should just omit the defined()?)
>
>
> Know of any way to fix it?
>

Change the

if (defined @ChildConnect)

in line 135 of Apache/DBI.pm to

if (@ChildConnect)

of course you can remove the if block at all, because the for in the next
line will not iterate on an empty array anyway.

Edmund,

is this a know issue? if not please fix it in your next release, because the
result of a defined on a aggreate isn't defined in Perl, so you should avoid
it.

Gerald


-------------------------------------------------------------
Gerald Richter    ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post:       Tulpenstrasse 5         D-55276 Dienheim b. Mainz
E-Mail:     richter@ecos.de         Voice:    +49 6133 925151
WWW:        http://www.ecos.de      Fax:      +49 6133 925152
-------------------------------------------------------------