Welcome to the Monastery | |
PerlMonks |
Re^3: The error says the value is uninitialized, but it works anywayby jcb (Parson) |
on Aug 18, 2019 at 22:30 UTC ( [id://11104665]=note: print w/replies, xml ) | Need Help?? |
Hmmm... You are right. I have edited my earlier post to correct the misinformation. It seems that I had confused Perl, SQL, and Lisp while writing that. As I recall, there is only one undef value in perl, and DBI (see also DBI recipes) maps SQL NULL and Perl undef. Here are the tests I ran before writing that post:
Spotted the missing test yet? Try:
Since the message specifically mentions use of undef in eq, I had assumed that eq actually sees the undefined value, instead of stringifying it like any other value. Wrong!
In Section
Seekers of Perl Wisdom
|
|