in reply to Re^2: Merge 2 lines in 1 die statement
in thread Die statement with text & formatting of the user

die not only exits your program, it also sets a non-zero return code. Your webserver sees that, and concludes there was an error in your program.

Either use ikegami's hint of setting $!=0, or do the sensible thing and use exit.