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::VGis a subclass ofNumber::Phone::NANP- and
Number::Phone::NANPis itself a subclass ofNumber::Phone - so
Number::Phone::NANPsits 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 tousethis module directly. Like, ever.Number::Phone::NANPwill 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
- 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