https://www.manu.co.in/how-to-get-the-exact-errors-into-error-log-in-perl/
How to get the exact errors into error log in perl?