use warnings; use strict; my $contact = "Firstname Lastname"; $contact =~ s/ .* \s (\S+) $ /Mr. $1/x; print "$contact\n";
Or maybe Lingua::EN::NameParse
In reply to Re: Strip first name from string
by toolic
in thread Strip first name from string
by htmanning
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |