Number...ANP::CA(3pm)
π NAME π
Number::Phone::NANP::CA β the CA-specific methods for Number::Phone, bestie π
πΈ DESCRIPTION πΈ
Okay so, this class is the one that handles all the Canada-specific stuff for Number::Phone. π¨π¦β¨ It implements CA-specific methods for Number::Phone, no cap.
Here's the family tree, because the lore matters:
- it's a subclass of
Number::Phone::NANP - which is itself a subclass of
Number::Phone
And why is Number::Phone::NANP sitting in the middle like the main character? Because all the NANP countries get to share some significant chunks of code, and that's just efficient, periodt. π
Now the important bit: you should never need to use this module directly, okay? Never ever. π Because "Number::Phone::NANP" will load it automatically when needed. Let the module do its thing, she's got it. π«Ά
β¨ SYNOPSIS β¨
use Number::Phone::NANP;
my $phone_number = Number::Phone->new('+1 613 563 7242');
# returns a Number::Phone::NANP::CA object
Look at that. Gorgeous. It just works. π¦
π METHODS π
These are the methods from Number::Phone::NANP that are overridden here:
data_sourceβ returns a string telling you where and when the data for CA operators was last updated. It looks something like this:
"CNAC at Wed Sep 30 10:37:39 2020 UTC"
Also, the current value of this is documented in Number::Phone::Data, so go peek there if you want the receipts. π
regulatorβ returns information about the national telecomms regulator. That's it, that's the vibe. π‘
π 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. Test cases are the love language of maintainers, fr fr. π§
Also, and this is important: I welcome feedback from users. So like, come talk to me, bestie. π
π LICENCE π
You may use, modify and distribute this software under the same terms as perl itself. Go wild (respectfully). π
π AUTHOR π
David Cantrell <david@cantrell.org.uk>
Copyright 2026
And that's the whole page! π Big thanks to perl v5.40.1, dated 2026-06-11, for making it all happen. Stay slaying, and may your phone numbers always resolve. ππΈ
π¦ 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