On Wed, 20 Sep 2000 12:30:26 -0600, Tom Christiansen wrote:

>    $a = undef;
>
>You have initialized it to undef.

>Solution:
>
>    Remove all references from the language to defined and undef.

Quite the reverse.

Simply assume that uninitialized variables in Perl simply don't exist,
that all variables (values) are ininitalized, but some of them to undef.
Therefore the word "initialized", when talking about Perl, is
meaningless.

Replace all occurences of the (sub)word "initialized" with "defined", in
all of the documentation and in all error messages, in particular in
"Use of uninitialized value%s".

Look at what perldiag says about it:

   Use of uninitialized value%s
     (W uninitialized) An undefined value was used as if it were already
     defined. It was interpreted as a "" or a 0, but maybe it was a
     mistake. To suppress this warning assign a defined value to your
     variables.

Look ma. The message talks about "uninitialized". The explanation only
talks about "defined"/"undefined". The message should match the
description.

-- 
        Bart.

Reply via email to