use strict; use warnings; my $value="abc"; my $t=eval { 0+$value }; print "OMG: $@\n"; __END__ Argument "abc" isn't numeric in addition (+) ... OMG: