SHARE
Facebook X Pinterest WhatsApp

Performance Computing: Perl Advisor: Figuring Phone-y Words

Written By
thumbnail
Web Webster
Web Webster
Nov 14, 1999

“Every day, we seem barraged with phone numbers that “spell”
things, like “please dial 1-ZZZ-HE-MUST-PAY to force your older
brother to pay for the call!” That’s because since nearly day one
of dial phone service (back when it was really a dial), we’ve had
these letters that go along with each of the digits.”

On one of the many mailing lists I follow, a question came
up the other day: someone wanted to know if there were any large
sets of words that all collided to the same number.
I thought
that’d be a perfect job for Perl, and in a short time, came up with
a quick program to scan through the standard UNIXdictionary in
/usr/dict/words to find the longest such collision list (or lists,
if more than one). Since the program illustrates some basic data
reduction techniques, I thought I’d pass it along to you as
well.”

“First, comes the most critical part. Given an arbitrary string,
like “merlyn,” what are the digits used to construct that? Well, we
need to know that m is 6, and e is 3, and so on. Now, there are
many slow ways to do this, but the fastest way is a tr
operator…”

Complete
Story

thumbnail
Web Webster

Web Webster

Web Webster has more than 20 years of writing and editorial experience in the tech sector. He’s written and edited news, demand generation, user-focused, and thought leadership content for business software solutions, consumer tech, and Linux Today, he edits and writes for a portfolio of tech industry news and analysis websites including webopedia.com, and DatabaseJournal.com.

Recommended for you...

Germany Puts Microsoft on Five Years Probation for Antitrust Bullying
brideoflinux
Oct 12, 2024
Linus Torvalds Expresses Frustration With Bcachefs Development Process
Senthil Kumar
Oct 7, 2024
Mozilla Thunderbird Lands On Android With New Beta Release
Senthil Kumar
Oct 1, 2024
Tor and Tails Merge to Fight Global Surveillance and Censorship
Bobby Borisov
Sep 26, 2024
Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2025 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.