On 4/19/05, Donald Leslie {74279} <[EMAIL PROTECTED]> wrote:
> I am running a mod_perl application that makes calls to the Oracle XMl
> dbi interface (XML::Generator::DBI) . The Apache log file shows the
> following error
>
> Use of uninitialized value in string eq at
> /usr/lib/perl5/site_perl/5.8.5/XML/Generator/DBI.pm line 187
>
> The code at this point is :
>
>
> my $ind = 0;
> while ($el_stack[$ind] eq $stack[$ind] and
> $ind <= $stack_len and
> $ind <= $el_stack_len)
> {
> $ind ++;
> }
>
> Line 180 is the while statement
>
> Any suggestions on how to debug this ?
I would start by believing the error message.
The only string eq in the statement is:
$el_stack[$ind] eq $stack[$ind]
therefore one of those is undefined.
As Uri pointed out, if you put the bounds check before the equality
check you'd likely eliminate the error.
Cheers,
Ben
_______________________________________________
Boston-pm mailing list
[email protected]
http://mail.pm.org/mailman/listinfo/boston-pm