in reply to Re: Style and warnings
in thread Style and warnings
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Style and warnings
by BioLion (Curate) on Aug 18, 2009 at 17:40 UTC | |
by JavaFan (Canon) on Aug 18, 2009 at 20:48 UTC | |
by BioLion (Curate) on Aug 19, 2009 at 07:33 UTC |