If you want to print the error in some other file then, use $SIG{__DIE__} handler. Inside that handler log the message in the file that you want to store the message.
In reply to Re: STDERR and die
by lakshmananindia
in thread STDERR and die
by thejerryman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |