in reply to Splitting?
$_ = 'anyone@somewhere.com, gerard@spied.co.nz, mum@work.com, albert@s +pied.co.nz, someonelse@hotmail.com'; my @emails; foreach (split /\s*,\s*/) { push @emails, $_ if /\@spied\.co\.nz$/; }
Or something like that :)
--"The first rule of Perl club is you do not talk about
Perl club."
-- Chip Salzenberg
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Splitting?
by Gerard (Pilgrim) on Dec 10, 2001 at 16:34 UTC |