Number...redIntl(3pm)
πΈ NAME πΈ
Number::Phone::Formatter::NationallyPreferredIntl β bestie, it's the nationally-preferred format for international phone numbers π
(it's a manual page for Perl, section 3pm, iykyk)
β¨ DESCRIPTION β¨
okay so picture this: you've got an international number and you want it looking correct for the country it belongs to. That's literally this whole module. It's a formatter that outputs the international number in its nationally preferred format. No cap π
π METHOD π
π¦ format
This is the only method, periodt. She takes an E.123 international format string and a Number::Phone object, and gives you back the nationally-preferred international representation of the phone number. Obsessed.
+1 212 334 0611 -> +1 212-334-0611
π heads up bestie: this uses data derived from libphonenumber, so if your object is not derived from that, it will first create a temporary object. That may involve a small unexpected performance hit π lowkey tragic but fr fr, that's the deal.
π AUTHOR, COPYRIGHT and LICENCE π
Copyright 2018 Matthew Somerville <matthew-github@dracos.co.uk> π
This software is free-as-in-speech software, and may be used, distributed, and modified under the terms of either the GNU General Public Licence version 2 or the Artistic Licence. It's up to you which one you use β main character choice, honestly π«Ά The full text of the licences can be found in the files GPL2.txt and ARTISTIC.txt, respectively. Go read 'em, they're right there β
and that's the whole page, bestie!! this was perl v5.40.1, dated 2026-06-11, and you just read the manual for Number...redIntl(3pm) β¨ slay, go format some phone numbers π
π¦ 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