in reply to Tree::Nary -- my program is creating phantom nodes

Empty nodes are being added to my N-ary tree in recurse_tree

If that's what you think, how come you didn't post recurse_tree?

Please post a minimal program that demonstrates the problem.