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