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 the D digit on those is either 0 or 1. 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't use this directly, let Number::Phone::NANP do it for you. iykyk ✨

perl v5.40.1 Β· 2026-06-11 Β· mwah, catch you in the next manpage πŸŽ€πŸ¦‹πŸ’œ

πŸ“¦ where this page comes from