in reply to DBI and Hash

Perl complains how? The value for a hash key that doesn't exist is undef, which when inserted should be null, which sounds like what you want.