Perl Monk, Perl Meditation | |
PerlMonks |
Re: Generate unique initials from a list of namesby TomDLux (Vicar) |
on Mar 12, 2004 at 13:45 UTC ( [id://336143]=note: print w/replies, xml ) | Need Help?? |
If fitting data onto one line is essentialIn your situation, I would look into Soundex and similar name encoding algorithms. Normally they are used to match up variant spellings of names, but since they convert a name to a code, yet still have a chancee of recognizing the name from the code. Consider multi-line outputAlternatly, you could look into using format and turning the Consumer section into a multi-line component:
No messy encodings, no problems figuring out the identities of the people in the Consumers list, only a minor inconvenience learning to use a format. --
In Section
Seekers of Perl Wisdom
|
|