But i though local *STDERR = *STDOUT was supposed to redirect all errors to the default output
There. You are giving yourself the answer :-)
That's why the error shows on your "screen" - i.e. the browser. It gets the STDERR because you have redirected it to STDOUT, otherwise it would be directed to the error log.
Don't do that, don't die on line 74, just print the error message, then exit. All will be fine, and because, then, your scripts exits 0, no 500 error page will be generated.
--shmem
_($_=" "x(1<<5)."?\n".q·/)Oo. G°\ /
/\_¯/(q /
---------------------------- \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}
In reply to Re^9: Merge 2 lines in 1 die statement
by shmem
in thread Die statement with text & formatting of the user
by Nik
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |