in reply to die vs. print in CGI

Why not just use CGI::Carp?
use CGI::Carp 'fatalsToBrowser';
Now, all errors will be sent to the browser in a platform independent way (provided the platform has the module).

jeffa