in reply to Die function misfunctions

try using CGI::Carp qw/ fatalsToBrowser /

that'll send your fatals to the browser window ( good for development code, prolly bad for production code. )