DrHyde / perl-modules-Scalar-Type

Figure out what type a scalar is

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This module grovels in perl's guts to see if a variable really is a number,
as opposed to a string that just looks like a number, and whether it is an
integer or not. ie, it can tell the difference between "100", 100, and 100.0.

100 is an integer.

"100" is a string that looks like an integer.

100.0 is numerically equivalent to 100, but it is only accurate to 4
significant figures.

To install, do the usual:
	perl Makefile.PL
	make
	make test
	make install

You may use, modify and distribute this code under the terms of either the GNU
General Public Licence, version 2, or the Artistic Licence. The full text of
these can be found in the files GPL2.txt and ARTISTIC.txt respectively.

About

Figure out what type a scalar is


Languages

Language:Perl 78.9%Language:Raku 18.4%Language:XS 2.7%