Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Message threading

by sschneid (Deacon)
on Jun 20, 2003 at 16:20 UTC ( [id://267634]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    Data strucure: Message ID (Parent)
    
    ...
           |-- 4 (3)
           |   \-- 6 (4)
           \-- 5 (3)
    
  2. or download this
    # Get the data and store it in a message hash
    while (<DATA>) {
    ...
            content => $content
        );
    }
    
  3. or download this
    foreach my $id (keys %{$msg}) {
        next if ($msg->{$id}->{thread} == 0);
        push @{ $msg->{ $msg->{$id}->{thread} }->{children} }, $id;
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://267634]
Approved by hardburn
Front-paged by broquaint
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (2)
As of 2024-04-26 05:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found