Number...ANP::DO(3pm)
π NAME π
Number::Phone::NANP::DO β the DO-specific methods for Number::Phone, bestie π¦
πΈ DESCRIPTION πΈ
okay so this class is where all the DO-specific methods for Number::Phone live. It'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 in the middle so that all NANP countries can share some significant chunks of code β it's giving teamwork, it's giving DRY, we love to see it π
and like, you should never need to use this module directly, fr fr. Number::Phone::NANP will load it automatically when needed. so just chill and let the module handle it, it's a whole main character β¨
π« SYNOPSIS π«
use Number::Phone::NANP;
my $phone_number = Number::Phone->new('+1 809 547 1000');
# returns a Number::Phone::NANP::DO object
look at that. one line and you've got a Number::Phone::NANP::DO object. iconic behaviour, no notes π
π METHODS π
The following methods from Number::Phone are overridden β so they do their own DO-specific thing instead of the generic one:
is_tollfreeβ the Dominican Republic has its own toll-free numbers π«Ά (presumably only dialable from within+1 809/829/849), and theDdigit on those is either0or1. that's the whole vibe check right there πregulatorβ returns information about the national telecomms regulator ποΈβ¨
π BUGS/FEEDBACK π
found a bug? please report it at <https://github.com/DrHyde/perl-modules-Number-Phone/issues> π and if you possibly can, include a test case with it β future you (and everyone else) will be so grateful, i promise π
and also!! i welcome feedback from users. genuinely. drop a message, it's not weird, it's community π
π LICENCE π
You may use, modify and distribute this software under the same terms as perl itself. periodt. π
π§ AUTHOR π§
David Cantrell <david@cantrell.org.uk> π
Copyright 2026
and that's the whole page bestie, you ate that π lowkey the most important bit: don'tusethis directly, letNumber::Phone::NANPdo it for you. iykyk β¨
perl v5.40.1 Β· 2026-06-11 Β· mwah, catch you in 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