>>>>> "GL" == Glenn Linderman <[EMAIL PROTECTED]> writes:

GL> There is a difference between "undefined" and "unknown".

GL> Perl undefined is a different concept--that of an uninitialized
GL> variable.  This is proven from its earliest versions where the
GL> value is coerced to 0 or '' (specific values) when used (without
GL> warnings on).

Sorry, as far as I'm concerned

        $foo = undef
and
        select @foo = NULL

Are both initialized.

And what do you consider

        sub foo { ....; return }
        $status = foo;

Uninitialized? Very clearly initialized.

And lets look at the name and functions

        defined($foo)
        undef($foo)

Both seem clearly to mean _undefined_ or perhaps unknown or NULL

The use of undef meaning 0 or '' is quite useful.

But under some programing styles having tristate logic and NULL propogation
would make some programming task a bit more straightforward.

<chaim>
-- 
Chaim Frenkel                                        Nonlinear Knowledge, Inc.
[EMAIL PROTECTED]                                               +1-718-236-0183

Reply via email to