in reply to Re: Strip first name from string
in thread Strip first name from string
While I agree with your statement that ..The trouble with this sort of problem statement is that it is subject to all kinds of counter-exemplification I will want to second toolic mention of Lingua::EN::NameParse.
And for a one off name like you mentioned one could do this:
print sprintf 'Mr. %3$s' => split/ / => "G. Gordon Liddy Sr., PhD"; #M +r. Liddy
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Strip first name from string
by hippo (Archbishop) on Jan 29, 2014 at 09:17 UTC | |
by Anonymous Monk on Jan 29, 2014 at 09:37 UTC | |
by 2teez (Vicar) on Jan 29, 2014 at 11:51 UTC |