Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: Writing It Myself, DWIM, and Expectations

by jest (Pilgrim)
on Sep 13, 2004 at 17:38 UTC ( #390613=note: print w/replies, xml ) Need Help??


in reply to Re: Writing It Myself, DWIM, and Expectations
in thread Writing It Myself, DWIM, and Expectations

> Now, I know there's a difference between "" and undef in Perl, just like I know there's a difference between "" and NULL in my database.

You do?

Not if your database follows the SQL-92 standard!

Leaving aside the issue of what the SQL-92 standard actually says, and also leaving aside the holy war about whether MySQL is a real database or not, the fact remains that my database, which is MySQL, does treat "" and NULL as different, so my above statement is correct.

In the meantime, I've decided to use a different input validator, which is working much better for me.

  • Comment on Re^2: Writing It Myself, DWIM, and Expectations

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://390613]
help
Chatterbox?
Discipulus a missing semicolon after use LWP::UserAgent caused very strange behaviour and not the normal warning...
[choroba]: Yes, sometimes missing ; after the use clause just interprets the next line somehow and passes the result to the used module which could happily ignore it. Been there, seen that.

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2017-02-28 08:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (398 votes). Check out past polls.