in reply to Differing Behavior as CGI vs. Command Line
What does your httpd error log say? Do you have RaiseError set in your DBI connection? Does the httpd server need a modified connection string for DBI?
After Compline,Zaxo