Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^3: NULL Variables

by Anonymous Monk
on Jun 01, 2011 at 14:51 UTC ( [id://907644]=note: print w/replies, xml ) Need Help??


in reply to Re^2: NULL Variables
in thread NULL Variables

I agree with the person above me. I was actually reading the Llama book, and was searching for a way to set a variable so that the defined () function would come back as false. Since i did not know about 'undef', it makes it kind of hard to search for it in a book. Just because it seems obvious to you doesn't mean everyone gets it. Is this forum about helping people with Perl or selling O'Reilly books? WTF? Thanks to the first poster who answered the question in less space than the others took to complain about it.

Replies are listed 'Best First'.
Re^4: NULL Variables
by LanX (Saint) on Jun 01, 2011 at 15:51 UTC
    > Thanks to the first poster who answered the question in less space than the others took to complain about it.

    It's not that easy. Many languages have a "NULL" which isn't always the same as undef.

    Javascript for instance has "undefined" and "Null". This has much to do with different models concerning the boolean interpretation of certain data types.

    So the "complaints" you are criticizing are motivated by the confusion about the real question behind the OP might be.

    Maybe of interest: Is // a "Null coalescing operator" ?

    Cheers Rolf

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://907644]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (4)
As of 2024-04-19 03:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found