in reply to Uninitialized value in string warnings (was: Warnings:)

Either:
  1. initialize $b as many have said above, or
  2. if you know and don't care that the variable may be uninitialized, add no warnings 'uninitialized'; in the smallest possible scope.
I will usually use the 'no warnings' pragma when looping through a DBI recordset, rather than try to initialize each variable prior to its use.

Replies are listed 'Best First'.
Re: Re: Warnings:
by Anonymous Monk on Jun 08, 2002 at 08:57 UTC

    Thanks. 2) Is exactly what I needed.