Provided by: libnetsds-util-perl_1.044-3_all bug

NAME

       NetSDS::Util::Types - type checking routines

SYNOPSIS

               use NetSDS::Util::Types;

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

DESCRIPTION

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

EXPORTED FUNCTIONS

       is_int($var) - check if parameter is integer
           Check if given parameter is integer

       is_float([...]) - check if parameter is float number
           Check if given parameter is float number

       is_date([...]) - check if parameter is date string
           Return 1 if parameter is date string

       is_binary([...]) - check for binary content
           Return 1 if parameter is non text.

       is_ref_scalar($ref) - check if reference to scalar value
           Return true if parameter is a scalar reference.

                   my $var = 'Scalar string';
                   if (is_ref_scalar(\$var)) {
                           print "It's scalar value";
                   }

       is_ref_array($ref) - check if reference to array
           Return true if parameter is an array reference.

       is_ref_hash($ref) - check if hashref
           Return true if parameter is a hash reference.

       is_ref_code($ref) - check if code reference
           Return true if parameter is a code reference.

       is_ref_obj($ref, [$class_name]) - check if blessed object
           Return true if parameter is an object.

EXAMPLES

       None

BUGS

       None

TODO

       Add more functions.

SEE ALSO

       None.

AUTHORS

       Valentyn Solomko <pere@pere.org.ua>

       Michael Bochkaryov <misha@rattler.kiev.ua>