Hello dear monks.
Today is the day that again I have to come to Monastery Gates and knock in search for wisdom.
I have to create a blender.
I have a huge file with email addresses and they grouped by domains:
sample:
ads@domain.com
ads@domain.com
ads@domain1.com
ads@domina1.com
etc.
My blender needs to read them from file into array and create a mixture of these domains into a new or original array.
My result should look like that:
ads@domain.com
ads@domain1.com
ads@domain2.com
ads@domain1.com
etc
Please enlighten me how do I create this magic blender and mix all the addresses together?
Thank you in advance.
Bugorr :)
2005-10-12 Retitled by g0n, as per Monastery guidelines
Original title: 'Blender'
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.