bishop729 has asked for the wisdom of the Perl Monks concerning the following question:
Option 2: implement isnum, isint, and isfloat myself.$ find Scalar/ Scalar/ Scalar/Util Scalar/Util/Numeric.pm $ perl -e 'do "./Scalar/Util/Numeric.pm" or die;' Can't locate loadable object for module Scalar::Util::Numeric in @INC +(@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.26.1 + /usr/local/share/perl/5.26.1 /usr/lib/x86_64-linux-gnu/perl5/5.26 /u +sr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.26 /usr/share/perl/5. +26 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at - +e line 1. ...propagated at -e line 1.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Portable way of checking if a scalar is a number / integer / float
by haukex (Archbishop) on May 13, 2023 at 20:55 UTC | |
by bishop729 (Initiate) on May 13, 2023 at 22:57 UTC | |
|
Re: Portable way of checking if a scalar is a number / integer / float
by kcott (Archbishop) on May 13, 2023 at 22:02 UTC | |
by bishop729 (Initiate) on May 13, 2023 at 23:02 UTC | |
|
Re: Portable way of checking if a scalar is a number / integer / float
by ikegami (Patriarch) on May 14, 2023 at 17:53 UTC |