Query: netsds::util::types
OS: debian
Section: 3pm
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
NetSDS::Util::Types(3pm) User Contributed Perl Documentation NetSDS::Util::Types(3pm)NAMENetSDS::Util::Types - type checking routinesSYNOPSISuse 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 FUNCTIONSis_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.EXAMPLESNoneBUGSNoneTODOAdd more functions.SEE ALSONone.AUTHORSValentyn Solomko <pere@pere.org.ua> Michael Bochkaryov <misha@rattler.kiev.ua> perl v5.12.4 2011-08-27 NetSDS::Util::Types(3pm)
Related Man Pages |
---|
netsds::const(3pm) - debian |
netsds::feature::kannel(3pm) - debian |
netsds::session(3pm) - debian |
netsds::util::datetime(3pm) - debian |
netsds::util::struct(3pm) - debian |
Similar Topics in the Unix Linux Community |
---|
Check if variable is a number |
checking if parameter passed is a number |
i need help to find the error in the unix code |
korn shell: check the content of a string of a variable |
HP-UX Health Check |