Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^2: NULL Variables

by Anonymous Monk
on Jun 29, 2010 at 01:32 UTC ( [id://847023]=note: print w/replies, xml ) Need Help??


in reply to Re: NULL Variables
in thread NULL Variables

Yeah you dumbasses should just use the search function available in every book on the shelf.. /sarcasm Actually.. Sometimes it's nice to have answers which you know right at your finger tips. Just so you can verify that you are not going crazy. Also sometimes it's easier to search the net for something than it is searching a book for something that may or may not be in the index. Also, posts like this are easier for most people to read than cs books.

Replies are listed 'Best First'.
Re^3: NULL Variables
by Anonymous Monk on Jun 01, 2011 at 14:51 UTC
    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.
      > 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://847023]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (5)
As of 2024-04-25 11:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found