Re: from pgsql_perl5 to DBD-Pg
Andrew Dunstan <[email protected]>
| Newsgroups | gmane.comp.db.postgresql.dbdpg |
|---|---|
| Message-ID | <[email protected]> |
Bob Hunter wrote: >> # [2]: $dbh eq "undef" >> > > Reading from the cited book, it says that the value is > "undef", so I wrote the rule accordingly. Doing some > tests last night it became clear that it should have > said that the value is undefined. On a broader > perspective, I like Pg's approach better. > > > please do the following: perldoc -f undef perldoc perldata and then look in a basic perl book for info about undef. And if the book you are using says the value is "undef" (with quotes) you almost certainly need to throw it in the bin, as the author is not to be trusted. (e.g. undef is false, but "undef" is true). cheers andrew