in reply to generate list from users first name and name?
Your treatment of the middle names might be different. Also, if there are non-ASCII characters in your users' names, more care is needed. Moreover, you should probably hash the usernames and e-mails and check for duplicates.#!/usr/bin/perl use warnings; use strict; while (<DATA>) { chomp; my @names = map lc, split; s/\.// for @names; print join "\t", $_, lc substr($names[0], 0, 1) . $names[-1], lc join '.', @names; print "\n" } __DATA__ Max Maier Jerome Mustermann John Lee Duke Peter F. Smith
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: generate list from users first name and name?
by matze77 (Friar) on Sep 14, 2012 at 12:57 UTC |