NetSDS...::Types(3pm)
π NetSDS...::Types π
okay so bestie, welcome to the NetSDS...::Types page β yeah that's the 3pm one, the User Contributed Perl Documentation vibe, we love her π
β¨ NAME β¨
NetSDS::Util::Types β type checking routines π«Ά
πΈ SYNOPSIS πΈ
no cap, this is literally the whole vibe:
use NetSDS::Util::Types;
# Check if variable contains integer value
if (is_int($var)) {
$var++;
} else {
print "Value is not integer!";
}
π¦ DESCRIPTION π¦
the NetSDS::Util::Types module is just... a whole collection of functions that check whether your data is actually the data type you think it is. it's giving vibe check but for variables β¨ she contains functions for checking data for being of exact data types, periodt.
π EXPORTED FUNCTIONS π
is_int($var)β check if parameter is integer. yes queen, she checks if the given parameter is an integer πis_float([...])β check if parameter is float number. that's it, that's the function, she checks if given parameter is a float number β¨is_date([...])β check if parameter is date string. returns1if parameter is a date string ποΈis_binary([...])β check for binary content. returns1if parameter is non text πis_ref_scalar($ref)β check if reference to scalar value. returns true if parameter is a scalar reference πͺ
like for example, bestie:
my $var = 'Scalar string';
if (is_ref_scalar(\$var)) {
print "It's scalar value";
}
is_ref_array($ref)β check if reference to array. returns true if parameter is an array reference πis_ref_hash($ref)β check if hashref. returns true if parameter is a hash reference πis_ref_code($ref)β check if code reference. returns true if parameter is a code reference πis_ref_obj($ref, [$class_name])β check if blessed object. returns true if parameter is an object π§
β EXAMPLES β
None β yeah bestie, there's literally nothing here, the examples section is empty and honestly? she's serving minimalist π
π BUGS π
None β no bugs, we're unbothered, moisturized, happy, in our lane, focused, flourishing πΈ
π₯ TODO π₯
Add more functions. that's the whole list. the main character energy of just one task, we love a girl with a plan π
π SEE ALSO π
None. β nothing to see here, moving on β¨
π AUTHORS π
- Valentyn Solomko <pere@pere.org.ua>
- Michael Bochkaryov <misha@rattler.kiev.ua>
shoutout to the icons who made this happen π«Ά
and that's the page bestie!! this one was perl v5.36.0, dated 2022-11-20, from the NetSDS...::Types(3pm) page β go forth and type check your little heart out πππ¦
π¦ where this page comes from
- debian bookworm: libnetsds-util-perl 1.045-2 Β· GPL-2.0-or-later
- debian trixie: libnetsds-util-perl 1.045-2 Β· GPL-2.0-or-later
- ubuntu noble: libnetsds-util-perl 1.045-2 Β· GPL-2.0-or-later
- ubuntu questing: libnetsds-util-perl 1.045-2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms