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