in reply to Perl DBI NULL and undef
elsif (undef($_)) { print "NULL"; } [download]
... but that will never execute, because undef always returns the undefined value.
Improve your skills with Modern Perl: the free book.