Is MSSQL, the ODBC Driver or Win32::ODBC introducing the NUL values?
I don't know, but MS-SQL you say? Is there any reason not to use
DBI with
DBD::ODBC? I don't know anything about
Win32::ODBC, but I do know that I've used DBI with MS-SQL to great effect. If it's feasible, you might give this a shot. All things considered, having to clean the data is somewhat undesirable (though I'm sure someone will chime in with the fact that data from the database is marked as tainted, etc). Numbers should come back as numbers, not numbers with a NUL appended...
thor
Feel the white light, the light within
Be your own disciple, fan the sparks of will
For all of us waiting, your kingdom will come