Hi,
The situation where this most bugs me is when I read data from
a database (and I frequently have nullable columns), a row of
data will have "undefs" in it. Then I print the row and I get
the "uninitialized variable warning".
In other words, "undef" is a valid value, but I want to print it,
and I'm OK with it being printed as the empty string ("").
Stephen
At 10:39 AM 11/23/2001 +1300, Steve Piner wrote:
>
>Hello all,
>
>I read the P5EE style guide a while ago, and one thing that strikes me
>as odd is in the 'Warnings and Strict' section:
>
>It says that code should run cleanly with 'use strict' and '-w'
>(warnings) enabled. It then goes on to say that 'The one exception is
>the ``Use of uninitialized variable'' warnings.'
>
>I'm just wondering why this exception is being made, especially as it
>would seem to be one of the easier to avoid.
>
>Any ideas?
>
><http://www.officevision.com/pub/p5ee/software/htdocs/P5EEx/Blue/perlstyle.
html#warnings
>and strict>
>
>--
>Steve Piner
>Web Applications Developer
>Marketview Limited
>http://www.marketview.co.nz
>
>