Dan Hopkins [mailto:[EMAIL PROTECTED] wrote:


> I'm getting bizzare errors against previously working code (multiple
> scripts). Basically, the
> 
>       while (.... = $sth->fetch*...)
> 
> loops all fail on the final iteration with:
> 
> "Use of uninitialized value in subroutine entry at <myscript>.pl line
> <whatever>
> DBD::Oracle::st fetchrow_array warning:  [for Statement <mySQL>] at
> <myscript.pl> line <whatever>"

> Any suggestions (or ridicule if I'm missing something obvious) welcomed.

Well, the first suggestion would be to show us the actual code that is
causing this warning!

Anyway, I've found that when "Use of uninitialized value in subroutine
entry" occurs, it's usually due to calling a constant sub with an ampersand
and no parens.  Something with the duplication of @_ in this case causes the
warning.  To solve this, either remove the & or add empty parens to the
constant subroutine call.

Ronald


Reply via email to