Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Splitting?

by davorg (Chancellor)
on Dec 10, 2001 at 16:30 UTC ( #130639=note: print w/replies, xml ) Need Help??


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 :)

--
<http://www.dave.org.uk>

"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
    Like a charm. Cheers.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://130639]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2022-01-19 09:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (55 votes). Check out past polls.

    Notices?