On Sat, 9 Jun 2001, Michael A. Chase wrote:
> Date: Sat, 9 Jun 2001 10:20:40 -0700
> From: Michael A. Chase <[EMAIL PROTECTED]>
> To: Tim Harsch <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
> Subject: Re: uninitialized value and fetchro_arrayref
>
> Column value NULL is returned as undef. In some databases, that includes
> empty strings. This snippet before the print should remove that problem:
>
> foreach ( @$aref ) { $_ = '' if ! defined $_; }
If you are lazy and using a later version of Perl, you can also stick a
"no warnings 'uninitialized';" at the top of your script (or inside of the
loop if you want to limit the scope of the no warnings).
-rudy