It does print that, but not because $@ is set. Here's a slight modification:
use strict; use warnings; my $value="abc"; my $t=eval { 0+$value }; print "OMG: $@\n"; __END__ Argument "abc" isn't numeric in addition (+) ... OMG:
In reply to Re^4: Exploiting Perls idea of what is a number
by kyle
in thread Exploiting Perls idea of what is a number
by rovf
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |