Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
I have searched for quite some time and can't seem to come up with a easy and problem free way of doing this, so any suggestions would be great. I have a list of email adresses in the form,,,, The amount of whitespace either side of the commas is actually undertermined... it could be one none or many. Or just in the form
If there is only one address. There may be spaces here also... Call me stupied if you will... but I would like to extract the user names from the email addresses at my domain ( Note: There is always at least one with my domain.
It is late at night here and my brain is not functioning properly, to make matters worse, I have run out of coffee.
Would the best way to do this be to split it up on the commas, and then do something else wonderful with the array to get rid of the unwanted addresses? Please help / thoughts or other better suggestions, much appreciated. I don't expect for anyone to write the code for me, but I would love some help in getting my brain kick started. I know that this is a simple problem, but like I said, my lack of caffeine is really getting me down. Cheers, Gerard

In reply to Splitting? by Gerard

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":

  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or or How to display code and escape characters are good places to start.
Log In?

What's my password?
Create A New User
Domain Nodelet?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (4)
As of 2022-01-19 15:12 GMT
Find Nodes?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:

    Results (55 votes). Check out past polls.