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

✨ NAME ✨

Number::Phone::NANP::MP β€” the MP-specific methods for Number::Phone, bestie πŸ’–

(that's MP as in the country code, and yes this is a whole Perl module about it, we love a niche queen πŸ‘‘)


🌸 DESCRIPTION 🌸

Okay so, this class implements the MP-specific methods for Number::Phone. It's a subclass of Number::Phone::NANP, which is itself a subclass of Number::Phone. So the family tree is giving three generations of iconic πŸ’…

Number::Phone::NANP sits in the middle of that chain because literally all NANP countries get to share some pretty significant chunks of code β€” group project but make it functional 🫢

And here's the thing: you should never need to use this module directly, because Number::Phone::NANP will load it automatically when needed. It just shows up. Main character energy. It doesn't need an invite, it is the invite ✨


πŸŽ€ SYNOPSIS πŸŽ€

use Number::Phone::NANP;

my $phone_number = Number::Phone->new('+1 670 682 4555');
# returns a Number::Phone::NANP::MP object

Look at that. You ask for a number, you get a Number::Phone::NANP::MP object back. No cap, that's the whole vibe 🌈


πŸ’… METHODS πŸ’…

The following methods from Number::Phone are overridden:

(no methods are overridden)

Yeah. Zero. None. Nothing. Not a single one. It's giving minimalism, it's giving "the real work happens in the parent classes", and honestly? Respect πŸ™ˆβœ¨


πŸ› BUGS/FEEDBACK πŸ›

Found a bug? Please report it at:

<https://github.com/DrHyde/perl-modules-Number-Phone/issues>

...and include a test case if you possibly can, because a bug report without a test case is like a group chat message that just says "we need to talk" πŸ’€

Also: feedback from users is welcome. Genuinely. Come through 🫢


πŸ“œ LICENCE πŸ“œ

You may use, modify and distribute this software under the same terms as perl itself. Slay, permissive, iconic πŸ’–


πŸ‘‘ AUTHOR πŸ‘‘

David Cantrell <david@cantrell.org.uk>

Copyright 2026


and that's the whole page, bestie πŸ’œ this was Number...ANP::MP(3pm) from the User Contributed Perl Documentation, running on perl v5.40.1, dated 2026-06-11 β€” mwah, go read your phone numbers, ily πŸŽ€βœ¨

πŸ“¦ where this page comes from