The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

phonetize - print a string in a phonetic alphabet for easy reading

SYNOPSIS

  phonetize Martin

DESCRIPTION

Takes one argument, a "string". Converts each character of "string" to its equivalent "word" in the Phonetic Alphabet. Prints these "words", three "words" per line, one space between "words"

In other words, read the output aloud to your military friends and they'll know exactly what you're spelling.

TO DO

Let name of phonetic alphabet be an argument (in case more alphabets get implemented)?
Handle puncuation somehow?
Deal with capital vs. lowercase letters somehow?
Let the "three" in "three words per line" be an argument?

AUTHOR

Martin Thurn