Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Organising mbox into threads?

by ruzam (Curate)
on May 22, 2006 at 18:00 UTC ( [id://550989]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $hash{$msgid} = {
        filepos => $msgstart,
        inreply => $msgreply,
        nextmsg => []  # reference to an empty array
    }
    
  2. or download this
    my @heads;
    while(my ($key, $value) = each(%hash)) {
    ...
            push @heads, $key;
        }
    }
    
  3. or download this
    foreach my $msgid (@heads) {
        # do what ever you have to do to start a new thread
    ...
            thread_msgs($msgid);
        }
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (7)
As of 2024-03-28 11:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found