This seems like more of a job for regexp than for split. Is there any
reason not to use regexp in your particular case?
Brian Johnson
Partner/Systems Administrator/Programmer
Source1Hosting.tv, LLC (www.source1hosting.tv)
Source1Results.com, LLC (www.source1results.com)
I may be insane, but remember - The only
difference between an insane man and a
genius is his jacket.
>
> Gurus:
>
> I have a string like this:
>
> $s = '[EMAIL PROTECTED], "Blow, Joe" <[EMAIL PROTECTED]>,Joe Blow
> <[EMAIL PROTECTED]>'
>
> And I want to be able to split it up. Using split, like this:
>
> my @addresses = split(/, ?/, $s);
>
> But obviously this causes a problem because of the comma inside the
> quotes. I want three parts, and it splits it into four. Is there
> some module or nice way to have the commas inside quotes ignored?
>
> Reply to [EMAIL PROTECTED] if possible as I'm only getting
> the daily digest of this list.
>
> Thanks,
>
> -Mike
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]