sub do_tree { # -------------------------------------------------------- # this is the tree loop that call itself to display records in # tree form. pass it some record ids and see what happens! my %rec = &get_record ($_[0]); # get all the kids; weed out empty ones my @children = sort grep( {length} , split (/ /, $rec{'Children'})); # no kids? actually display the record then print "
  • [$rec{'ID'}] $rec{'Subject'}
  • \n" unless ($#children); # kinds actually exist? display them... print "
  • [$rec{'ID'}] $rec{'Subject'}
  • \n"; } #### print join(" ", map { sprintf "%#02x", $_ }unpack("C*",pack("L",0x12345678)))