|Pathologically Eclectic Rubbish Lister|
Dealing with Namesby walkingthecow (Friar)
|on Aug 28, 2008 at 18:31 UTC||Need Help??|
walkingthecow has asked for the wisdom of the Perl Monks concerning the following question:
I have an array that holds peoples names. The names can be as follows:
Daniel R Von Vanderschmidt
Daniel Von Vanderschmidt
Daniel De La Silvia
Daniel De Silvia
Daniel La Silvia
and so on...
Basically, I am trying to say if my script comes across Von *, join those two elements, or "De La" *, join those elements, or "La" *, join those elements. After the elements are joined, clear the De La...
So, for example:
0. Daniel 1.R 2.De 3.La 4.Amaya
0. Daniel 1. R 2. De La Amaya 3. 4.
With 0,1,2,3,4 being the number of elements...