Number...ANP::US(3pm)

πŸ’… Number::Phone::NANP::US (3pm) β€” the US glow-up for Number::Phone

okay bestie, so this is Number::Phone::NANP::US, a User Contributed Perl Documentation page, and it's lowkey the US-specific sidekick of the Number::Phone universe. ✨


🌸 NAME 🌸

Number::Phone::NANP::US β€” the US-specific methods for Number::Phone. periodt. πŸ‡ΊπŸ‡Έ


πŸ¦‹ DESCRIPTION πŸ¦‹

So here's the tea πŸ’–: this class implements the US-specific methods for Number::Phone. It's a subclass of Number::Phone::NANP, and that one is a subclass of Number::Phone. Why the middle layer, you ask? Because Number::Phone::NANP sits in the middle so that all the NANP countries can share some significant chunks of code β€” no cap, that's just efficient queen behavior πŸ‘‘

And the best part: you should never need to use this module directly, because Number::Phone::NANP will load it automatically when needed. Let the module do the work, fr fr. πŸ’…


✨ SYNOPSIS ✨

use Number::Phone::NANP;

my $phone_number = Number::Phone->new('+1 202 418 1440');
# returns a Number::Phone::NANP::US object

look at that. clean. iconic. give the +1 202 418 1440 a lil kiss for me πŸŽ€


πŸ‘‘ METHODS πŸ‘‘

The following methods from Number::Phone::NANP are overridden (yes, they got a glow-up):

  • data_source β€” returns a string telling you where and when the data for US operators was last updated, and it looks something like this:
"National Pooling Administrator at Wed Sep 30 10:37:39 2020 UTC"

also, the current value of this is documented in Number::Phone::Data, so go peek there if you're nosy (affectionate) πŸ“

  • regulator β€” the national telecomms regulator. simple as that. 🫢

😭 BUGS/FEEDBACK 😭

Found a bug? Not me being your beta tester πŸ’€ please report it at <a>https://github.com/DrHyde/perl-modules-Number-Phone/issues</a> β€” and, if possible, include a test case with it. That's the good karma move, bestie πŸ™ˆ

Also, I welcome feedback from users. genuinely. drop a lil note, it feeds the soul 🌈


🧚 LICENCE 🧚

You may use, modify and distribute this software under the same terms as perl itself. slay, open source rights πŸ’œ


πŸ’– AUTHOR πŸ’–

David Cantrell <david@cantrell.org.uk>

Copyright 2026


and that's the whole page, bestie β€” this was Number...ANP::US(3pm) from perl v5.40.1, dated 2026-06-11. go make some phone calls, you've earned it βœ¨πŸ“ž

πŸ“¦ where this page comes from