DOKK / manpages / debian 10 / libnetsds-util-perl / NetSDS::Util::Types.3pm.en
NetSDS::Util::Types(3pm) User Contributed Perl Documentation NetSDS::Util::Types(3pm)

NetSDS::Util::Types - type checking routines

        use NetSDS::Util::Types;
        # Check if variable contains integer value
        if (is_int($var)) {
                $var++;
        } else {
                print "Value is not integer!";
        }

"NetSDS::Util::Types" module contains functions for checking data for being of exact data types.

Check if given parameter is integer
Check if given parameter is float number
Return 1 if parameter is date string
Return 1 if parameter is non text.
Return true if parameter is a scalar reference.

        my $var = 'Scalar string';
        if (is_ref_scalar(\$var)) {
                print "It's scalar value";
        }
    
Return true if parameter is an array reference.
Return true if parameter is a hash reference.
Return true if parameter is a code reference.
Return true if parameter is an object.

None

None

Add more functions.

None.

Valentyn Solomko <pere@pere.org.ua>

Michael Bochkaryov <misha@rattler.kiev.ua>

2019-02-22 perl v5.28.1