in reply to Re^3: Can't use an undefined value as a HASH reference
in thread Can't use an undefined value as a HASH reference

Thank you'll very much for the pointers. It helped me trace through the problem. It's now resolved. I see build_tree was expecting a string that began with parenthesis, like so: "(TOP (S (NP (NP (NNP Pierre) (NNP Vinken))".