Help for this page
eval { # your code to be trapped ... if ($@) { # do your error checking, such as $@=~/error message 123/ }