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

✨ NAME ✨

Number::Phone::NANP::VG β€” the VG-specific methods for Number::Phone πŸ¦‹ and yes bestie, VG means the British Virgin Islands, this little module is that girl


πŸ’… DESCRIPTION πŸ’…

Okay so. This class implements the VG-specific methods for Number::Phone, and honestly? It's giving "specialist unit who knows exactly one country and knows it flawlessly". No cap.

The family tree goes like this, pay attention because it's a whole lineage moment πŸ‘‘

  • Number::Phone::NANP::VG is a subclass of Number::Phone::NANP
  • and Number::Phone::NANP is itself a subclass of Number::Phone
  • so Number::Phone::NANP sits right there in the middle, holding it down 🫢

Why the middle child energy? Because every NANP country gets to share some genuinely significant chunks of code, and duplicating all of that in every single country module would be so not slay. Lowkey genius architecture tbh.

You should never need to use this module directly. Like, ever. Number::Phone::NANP will load it automatically whenever it actually needs it. Let the parent handle it, that's literally the whole point 🌸

πŸŽ€ SYNOPSIS πŸŽ€

use Number::Phone::NANP;

my $phone_number = Number::Phone->new('+1 284 494 4444');
# returns a Number::Phone::NANP::VG object

See how you ask for a number and the right country class just materialises? Main character behaviour, fr fr ✨


🌈 METHODS 🌈

The following methods from Number::Phone are overridden. Just the one, and she ate:

  • regulator β€” hands you back the info about the national telecoms regulator. Your girl looked it up so you don't have to πŸ’–

πŸ› BUGS/FEEDBACK πŸ›

Not me asking you to please report bugs at:

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

and if you possibly can, include a test case with it? A reproducible one? That would be so iconic of you, and it makes the whole thing like a million times easier to fix πŸ™ˆ

Also, genuinely: feedback from users is welcome. Like, actually wanted. Come through 🫢


πŸ“œ LICENCE πŸ“œ

You may use, modify and distribute this software under the same terms as perl itself. Do your thing, just keep it on those terms, periodt πŸ’…


πŸ‘‘ AUTHOR πŸ‘‘

David Cantrell <david@cantrell.org.uk>

Copyright 2026


That's the whole page bestie, you're so welcome 🌸 slay, and remember: never use this one directly, let Number::Phone::NANP do it for you πŸ’–

perl v5.40.1 ✦ 2026-06-11 ✦ Number::Phone::NANP::VG(3pm) β€” mwah, that's the version and date, catch you in the next manpage πŸŽ€

πŸ“¦ where this page comes from