perl.org wrote:
> Wait a second...I always thought undef was a constant value.  Is it always
> a
> function or are there both?  I don't know that it matters but I prefer to
> show the parens when I invoke a function, but everywhere in my code I have
> $var = undef;

its a function.  it always returns the undefined value, thats why you can
use it in assignment like that (or use it as an rvalue).

if given an argument, it will set that argument to undefined and also return
undefined.

btw, why isn't my newsgroup reader threading this topic properly?  as well
as tons of other threads in this newsgroup...


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to