in reply to Strip first name from string
use warnings; use strict; my $contact = "Firstname Lastname"; $contact =~ s/ .* \s (\S+) $ /Mr. $1/x; print "$contact\n";
Or maybe Lingua::EN::NameParse
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Strip first name from string
by Skeeve (Parson) on Jan 29, 2014 at 07:35 UTC |