Furthermore, there are strings containing no \D characters, but which Perl cannot treat as numbers. "๑๒๓" for instance.
If you wish to find out whether a string looks like a number, use Scalar::Util::looks_like_number. Don't use simplistic regexes.
In reply to Re^2: Style and warnings
by JavaFan
in thread Style and warnings
by api
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |