So, 5.6 did implement this... It was mentioned in the "Effective Perl
Programming" book that individual warnings could not be turned on and off,
though future version would likely allow it. A wonderful book if you have
not seen it... Randall, are there any plans for an update, covering 5.6, in
the future?
> -----Original Message-----
> From: Rudy Lippan [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, June 09, 2001 11:01 AM
> To: Michael A. Chase
> Cc: Tim Harsch; [EMAIL PROTECTED]
> Subject: Re: uninitialized value and fetchro_arrayref
>
>
> 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
>
>