my $node = $rs->find($id); # do some search and updates ($lft, $rgt) = ($node->lft, $node->rgt + 1);