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.


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