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.

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