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

πŸ’– NAME πŸ’–

Number::Phone::NANP::BB β€” it's giving "BB-specific methods for Number::Phone", bestie πŸŽ€

This page lives in the User Contributed Perl Documentation section, and if you're reading it you're probably deep in the phone-number mines. Respect. πŸ‘‘


🌸 DESCRIPTION 🌸

Okay so, real talk: this class is the BB-specific part of Number::Phone. It handles the stuff that only applies to BB, and it does it as a subclass of Number::Phone::NANP β€” which is itself a subclass of Number::Phone. Layers, hunny. It's layers. πŸ§…

Why the middle layer? Because Number::Phone::NANP sits there on purpose: all the NANP countries get to share some significant chunks of code, and nobody wants to rewrite the same thing twelve times. Efficiency ate, fr fr πŸ’…

And here's the thing β€” you should never need to use this module directly. Not even once. πŸ™ˆ Number::Phone::NANP will load it automatically when it's needed, so just let it do its little job in the background. Main character energy from a background module, honestly.


✨ SYNOPSIS ✨

Here's the whole vibe, copy-paste ready 🫢

use Number::Phone::NANP;

my $phone_number = Number::Phone->new('+1 246 434 3444');
# returns a Number::Phone::NANP::BB object

Look at that. You hand it a number, it hands you back a Number::Phone::NANP::BB object. No cap. ⭐


πŸ’… METHODS πŸ’…

The following methods from Number::Phone are overridden β€” i.e. this module said "thanks, I'll take it from here" and did its own version:

  • regulator β€” returns information about the national telecomms regulator. That's it, that's the whole method, and honestly? Iconic. Knowing who the regulator is = knowing who to file a complaint with, and that is power. πŸ”₯

πŸ¦‹ BUGS/FEEDBACK πŸ¦‹

Found a bug? Bestie, please tell someone! Report bugs at:

<https://github.com/DrHyde/perl-modules-Number-Phone/issues> β€” wait, no, that's a link, and we don't do links here, so here it is as plain text like the original: https://github.com/DrHyde/perl-modules-Number-Phone/issues

And if you possibly can, include a test case. A bug report with a test case is a bug report that actually gets fixed, iykyk 😭

Also: feedback from users is welcome. Genuinely. Come through. 🫢


πŸ‘‘ LICENCE πŸ‘‘

You may use, modify and distribute this software under the same terms as perl itself. Go wild, just keep the same terms. That's the deal. ✨


πŸ’œ AUTHOR πŸ’œ

David Cantrell <david@cantrell.org.uk> πŸ’–

Copyright 2026


Heads up bestie: that's Copyright 2026, exactly like the page says. Don't @ me, @ the calendar. πŸ—“οΈ

perl v5.40.1 Β· 2026-06-11 β€” and that's the version and date this page was generated with, so that's your timestamp, periodt. Mwah, love you, go make some phone calls. πŸ’‹πŸ“žπŸŽ€

πŸ“¦ where this page comes from