Number...ANP::LC(3pm)
π Number::Phone::NANP::LC π
okay bestie, so this is Number::Phone::NANP::LC from the User Contributed Perl Documentation, and it's giving very specific, very Saint Lucia energy π±π¨β¨ (LC = the country code, iykyk).
πΈ NAME πΈ
Number::Phone::NANP::LC β the LC-specific methods for Number::Phone, bestie. that's it, that's the name π
π¦ DESCRIPTION π¦
so this class implements the LC-specific methods for Number::Phone. it's a subclass of Number::Phone::NANP, which is itself a subclass of Number::Phone. the family tree is real, let me draw it for you π:
Number::Phoneβ the og parentNumber::Phone::NANPβ sits in the middle, lowkey the glue of the whole operationNumber::Phone::NANP::LCβ the LC one, that's this one, hi π
and the reason Number::Phone::NANP chills in the middle like that is because all NANP countries can share some significant chunks of code β why write it twice when you can share the vibe, right?? iconic behavior fr fr.
bestie, you should never need tousethis module directly π« becauseNumber::Phone::NANPwill load it automatically when needed. it just shows up when it's supposed to, no invitation required. main character energy tbh β¨
π SYNOPSIS π
watch and learn, this is the whole thing:
use Number::Phone::NANP;
my $phone_number = Number::Phone->new('+1 758 453 9300');
# returns a Number::Phone::NANP::LC object
likeβ¦ look at that. you pass in '+1 758 453 9300' and it hands you back a Number::Phone::NANP::LC object. slay. π«Ά (and yes, that comment line is staying exactly as-is because that's the actual output note, not my commentary π)
π METHODS π
the following methods from Number::Phone are overridden:
regulatorβ returns information about the national telecoms regulator. that's the whole vibe check: who's in charge of the phones around here. π
π BUGS/FEEDBACK π
found a bug? not on my watch, bestie. please report bugs at:
<https://github.com/DrHyde/perl-modules-Number-Phone/issues>
and if you can, please include a test case along with it π that's the difference between "hm" and "oh we can fix this in 30 seconds".
also: I welcome feedback from users. so like, come through, say hi, it's a safe space π
π LICENCE π
you may use, modify and distribute this software under the same terms as perl itself. free as in do whatever, and the same rules as perl applies. periodt. β¨
π§ AUTHOR π§
David Cantrell <david@cantrell.org.uk>
Copyright 2026
and that's a wrap on this one, gorgeous π
this page came from the perl v5.40.1 docs, dated 2026-06-11, and we are obsessed. take a screenshot of that +1 758 453 9300, go make your objects, and I'll see you at the next manpage. ππ¦πΈ
π¦ where this page comes from
- ubuntu stonking: libnumber-phone-perl 4.0011-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms