#################### sub update_threads() { my $parent = $_[0]; my $msg_id = $_[1]; #check if this is a top-level, and set $parent accordingly if ($parent eq 'top') { $parent = $msg_id } my $main_threads_file = $htdocs . $path_info . "/threads.html"; my $archive_threads_file = $htdocs . $path_info . "/posts/" . $date . "threads.html"; my $post_location = $path_info . "/posts/" . $date . "/" . $parent . "_" . $msg_id . ".html"; my $post_name = $parent . "_" . $msg_id; my @threads; my @archive; my $link = "