Scalar:...keNumber(3)
π Scalar::Util::LooksLikeNumber β the manual page, bestie edition π
okay so this is the manual page for Scalar::Util::LooksLikeNumber, part of the User Contributed Perl Documentation. She's a little module with main character energy and exactly one job, and honestly? She ate. β¨
πΈ NAME πΈ
Scalar::Util::LooksLikeNumber β bestie, it's your hookup to the looks_like_number() perl API function. That's the whole vibe. π
π¦ SYNOPSIS π¦
use Scalar::Util::LooksLikeNumber;
print Scalar::Util::LooksLikeNumber::looks_like_number(1); # -> 4352
like... look at her. one use, one print, and she's already telling you that 1 looks like a number. iconic behavior, no cap. π₯
β¨ DESCRIPTION β¨
So Scalar::Util::LooksLikeNumber ships a looks_like_number() that works like the looks_like_number() from Scalar::Util, with one (1) tiny little difference that is actually the entire point: this one hands you back the raw value straight from the C function. π«Ά
And here's the tea β β Scalar::Util used to do exactly that too, but ever since version 1.39 it's been returning a booleanized value instead. So if you're out here missing the old raw-number flavor, this module is her. periodt. π
π FUNCTIONS π
$res = looks_like_number( $var )
Returns a non-zero value if perl thinks $var is a number. π§
fr fr, if you wanna know the deep lore on what "perl thinks is a number" even means, go read looks_like_number in perlapi. iykyk. π
π SEE ALSO π
Scalar::Utilβ the origin story, the blueprint, the mother. π₯Ή
π COPYRIGHT π
Copyright (c) 2014 Steven Haryanto <stevenharyanto@gmail.com>.
Code is based on Scalar::Util. π
and that's the whole page, bestie!! this was perl v5.42.0, dated 2025-07-25, and she slayed every single day of it. π β¨ go forth and check if things look like numbers. mwah. ππ
π¦ where this page comes from
- fedora 43: perl-Scalar-Util-LooksLikeNumber 1.39.2-33.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms