Type checking routines
use NetSDS::Util::Types; # Check if variable contains integer value if (is_int($var)) { $var++; } else { print "Value is not integer!"; }
\*(C`NetSDS::Util::Types\*(C' 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 <[email protected]>
Michael Bochkaryov <[email protected]>