in reply to Perl DBI and NULL vales from MSSQL

Yes. You get an undef whenever the field is null, because you might actually want to store the value 'NULL' in a field for some reason.

If you care to print out a NULL in the case of an undef, you can always do:
while (my $row = $sth->fetchrow_arrayref) { foreach my $field (@$row) { $field = '(NULL)' unless defined($field); } ... (the rest of your code) ... }
and that should take care of your problem.