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.
NetSDS::Util::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
Add more functions.
None.
Valentyn Solomko <pere@pere.org.ua>
Michael Bochkaryov <misha@rattler.kiev.ua>
To install NetSDS::Util, copy and paste the appropriate command in to your terminal.
cpanm
cpanm NetSDS::Util
CPAN shell
perl -MCPAN -e shell install NetSDS::Util
For more information on module installation, please visit the detailed CPAN module installation guide.