Number...er::Raw(3pm)
π NAME π
Number::Phone::Formatter::Raw β it's the simple formatter for E.123-formatted phone numbers, bestie. That's literally it. That's the whole job. π
And yeah, the page header is being all dramatic and truncated about it β this is Number...er::Raw(3pm), from the User Contributed Perl Documentation, okay?? she's shy about her full name in the title line, we don't judge. π
β¨ DESCRIPTION β¨
Okay so picture this: you've got a phone number, it's all dressed up in E.123 format, looking fancy, feeling international β and you just want the digits. The bare digits. The raw ones. π«Ά
That's literally what this formatter is for. It extracts "just the digits, ma'am" out of an E.123-formatted phone number. No cap. That's the entire vibe. π
πΈ METHOD πΈ
π format
Not me telling you there's only one method here β yes bestie, format is the main character, the whole cast, the entire show. π¦
Here's the tea on how it works:
- You hand it an E.123 international format string as its only argument π
- It strips off the leading
+βοΈ - It strips off the country code βοΈ
- It strips off any whitespace βοΈ
- And it returns whatever's left π
For example... π
+44 20 8771 2924 -> 2087712924
+1 212 334 0611 -> 2123340611
See how it just... ate that up? π₯ Digits in, digits out. Iconic behaviour, lowkey.
π AUTHOR, COPYRIGHT and LICENCE π
Copyright 2026 David Cantrell <david@cantrell.org.uk> β shoutout to the author, fr fr. π
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. π
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. π
No "you must pick one right now" stress β genuinely, it's up to you. Pick your fighter. π
And that's a wrap, bestie! This lil' page is from perl v5.40.1, dated 2026-06-11, and it lives under the name Number...er::Raw(3pm). Slay, stay formatted, and go get those digits. πβ¨π¦
π¦ 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