Scalars -7, 4.55, and 10e6 are all numeric. Your regex /^\d+$/ tests only for positive integers.
Update: Minor tpyo
Update 2: hotpelmen has now completely altered the content of her/his original post, without indicating that (s)he has made any changes (note to hotpelmen: this is considered Bad Form on PM).
In reply to Re^2: Find nonnumeric scalars
by Not_a_Number
in thread Find nonnumeric scalars
by urbs33
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |