in reply to Die function misfunctions
the die function causes perl to output "Died at line" which I suspect some webservers will read in as a die on script failure. The solution is to use the 'exit' function as this allows the script execution to stop without anything to STDOUT or STDERR. AFAIK web servers read in the STDERR of the script and look for error codes. Die produces just that.
-Adam Stanley
Nethosters, Inc.