$_ = '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
In reply to Re: Splitting?
by davorg
in thread Splitting?
by Gerard
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |