Basicly I just want everything "grouped, if you will" by email address and then by subject, so from this...
$to = "foo\@bar.com"; $subject = "New CDs now"; $file_name = "AAAAA.txt"; $from = "that\@person.com"; $last_dir = "Spam"; $to = "foo\@bar.com"; $subject = "New CDs now"; $file_name = "CCCCC.txt"; $from = "that\@person.com"; $last_dir = "Spam"; $to = "foo2\@bar.com"; $subject = "New CDs now"; $file_name = "BBBBB.txt"; $from = "that\@person.com"; $last_dir = "Spam"; $to = "foo3\@bar.com"; $subject = "New CDs now"; $file_name = "DDDDD.txt"; $from = "that\@person.com"; $last_dir = "Spam";
I'd like to get this...
email_slice - foo@bar.com subject_slice - New CDs now fn_slice - AAAAA.txt fn_slice - CCCCC.txt email_slice - foo2@bar.com subject_slice - New CDs now fn_slice - BBBBB.txt email_slice - foo3@bar.com subject_slice - New CDs now fn_slice - DDDDD.txt
So, even if a subject is duplicated several times, if it matches with the email address, it will be grouped with that same one. Then the file names will group right along with because they are linked to the subject.

Thanks again.

In reply to Re: Re: Why is part of slice duplicated? by the_0ne
in thread Why is part of slice duplicated? by the_0ne

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



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.