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

πŸ’– Number...ANP::KN πŸ’–

okay bestie, so this is Number::Phone::NANP::KN β€” a lil Perl module from the User Contributed Perl Documentation collection, and she is very niche but very iconic for exactly one reason. let's get into it πŸŽ€


✨ NAME ✨

Number::Phone::NANP::KN β€” literally what it says on the tin: KN-specific methods for Number::Phone. that's the whole vibe. πŸ’…


🌸 DESCRIPTION 🌸

so here's the tea β˜•: this class implements the KN-specific methods for Number::Phone. it's a subclass of Number::Phone::NANP, which is itself a subclass of Number::Phone. it's giving inheritance chain, it's giving family tree 🫢

and why is Number::Phone::NANP sitting right there in the middle, you ask? because all NANP countries can share some significant chunks of code, bestie. why write the same code nine times when you can write it once and let everyone borrow it. that's community. that's sisterhood. πŸ”₯

🚨 the warning you actually need: you should never need to use this module directly. like, ever. Number::Phone::NANP will load it automatically when needed, so just let her do her thing. don't be the person who imports the sub-subclass manually. that's not the move, ngl. πŸ™ˆ

πŸ¦‹ SYNOPSIS πŸ¦‹

here's how you actually slide into this module's DMs:

use Number::Phone::NANP;

my $phone_number = Number::Phone->new('+1 869 465 1000');
# returns a Number::Phone::NANP::KN object

see that? one use, one new, and boom πŸ’₯ β€” you asked for a number and the universe handed you back a Number::Phone::NANP::KN object. no extra steps. no drama. so clean. ✨


πŸ‘‘ METHODS πŸ‘‘

the following methods from Number::Phone are overridden β€” meaning this class said "i'll take it from here, thanks":

  • regulator β€” returns information about the national telecoms regulator. that's it, that's the one method, and she's carrying the whole module on her back. main character energy fr fr. πŸ’…

πŸ’€ BUGS/FEEDBACK πŸ’€

found a bug? first of all, 😭. second of all, please report bugs at:

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

and if you can swing it, include a test case. a test case is like bringing receipts to an argument β€” it makes everything ten thousand times easier to deal with. 🧚

also, and this is sweet: feedback from users is welcome. genuinely. so if you've got thoughts, send them on over. 🫢


🌈 LICENCE 🌈

you may use, modify and distribute this software under the same terms as perl itself. iconic licensing behaviour, no notes. πŸ’–


⭐ AUTHOR ⭐

David Cantrell β€” david@cantrell.org.uk

Copyright 2026


and that's the whole page, bestie πŸŽ€ that was Number...ANP::KN(3pm) β€” perl v5.40.1, dated 2026-06-11, absolutely serving niche-phone-number-subclass excellence and never once needing you to import her by hand. go forth and let Number::Phone::NANP handle it. periodt. πŸ’…βœ¨πŸ¦‹

πŸ“¦ where this page comes from