Re: Break up names Um... how about:

my ($first,$last,$email,$wName) = (split /\\s|\\s/, $wikiname)[1..4];


On 5/11/07, Chas Owens  wrote:
> On 5/11/07, Tony Heal  wrote:
> > I have a list of names that I need to break up and reassemble.
> >
> > The list consists of the first name and last name combined as a single word in wiki format. i.e.JoeBlow
> >
> > I need to break this up and recreate the list as
> >
> > | FirstName | LastName | Email | WikiName |
> >
> > i.e.
> >
> > | Joe | Blow | jblow@mymail.com | JoeBlow |
> >
> > I can do all of this except break the original word apart.
> >
> > Tony
>
> Assuming that JoeMcCarthey should be Joe McCarthy, I would do this
>
> my ($first, $Last) = $wikiname =~ /([A-Z]\\w*?)([A-Z]\\w*)/;
>
> --
> To unsubscribe, e-mail: beginners-unsubscribe@perl.org
> For additional commands, e-mail: beginners-help@perl.org
> http://learn.perl.org/
>
>
>

-- 
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
http://learn.perl.org/


