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

πŸ’– NAME πŸ’–

Number::Phone::NANP::PR β€” the PR-specific methods for Number::Phone, bestie. That's PR like Puerto Rico, and yes she has her own whole module, as she should πŸ‘‘


🌸 DESCRIPTION 🌸

okay so picture this: this class is the one that implements all the PR-specific methods for Number::Phone. She's a subclass of Number::Phone::NANP, which is itself a subclass of Number::Phone. why the middle layer, you ask? because Number::Phone::NANP sits right in the middle like the group chat admin β€” all NANP countries share some significant chunks of code, so they all pull from the same stash 🫢

and here's the thing, you should never need to use this module directly. like, ever. Number::Phone::NANP will load it automatically when needed, so it just shows up when it's her time to shine. no manual inviting required πŸ’…


✨ SYNOPSIS ✨

use Number::Phone::NANP;

my $phone_number = Number::Phone->new('+1 787 729 3131');
# returns a Number::Phone::NANP::PR object

literally that's it. you hand over the number, you get back a Number::Phone::NANP::PR object, main character energy confirmed 🌈


πŸŽ€ METHODS πŸŽ€

the following methods from Number::Phone are overridden:

(no methods are overridden)

ngl, the list is giving absolutely nothing because there's nothing in it πŸ™ˆ zero overrides, an empty plate, a vibe check that passed by doing nothing at all. slay in the most minimal way possible ✨


πŸ¦‹ BUGS/FEEDBACK πŸ¦‹

found a bug? pls pls pls report it at <https://github.com/DrHyde/perl-modules-Number-Phone/issues>, and if you possibly can, bring a test case with you β€” that's the love language of maintainers fr fr πŸ’œ

also, feedback from users is genuinely welcomed. you are seen, you are heard, you are iconic 🫢


πŸ‘‘ LICENCE πŸ‘‘

you may use, modify and distribute this software under the same terms as perl itself. that's it, that's the whole deal, go off πŸŽ€


⭐ AUTHOR ⭐

David Cantrell <david@cantrell.org.uk>

Copyright 2026


lowkey the paperwork is cute: this page ships with perl v5.40.1 and got its little timestamp on 2026-06-11 πŸ’– stay slay, bestie, and may all your phone numbers parse on the first try ✨🌸
πŸ“¦ where this page comes from