I'm wondering if perl does know any events. for example if the script dies with some message because of an error in my script syntax - Is there an error-event I can handle with some subfunction.
Years ago as I have "programmed" visual basic, there was a function that was very nice, it was called "on error" - what meant if some error occours call the function I've defined.
Is something available in perl that is similar to VB's onError event handler? This would be very useful, because I'm writing some cronjobs, that should report any error occouring during the process to me (not every sub was developed by me, in fact of that some erros could appear while processing different data. for example some of my fellow-programmers could have forgotten to chomp some strings).
It would be great if anyone could help me out, because I have not found anything on perl.com or the other perl developing related sites I know.