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 parent
  • Number::Phone::NANP β€” sits in the middle, lowkey the glue of the whole operation
  • Number::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 to use this module directly 🚫 because Number::Phone::NANP will 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