in reply to Scalar data & collection data with Tree::Trie

According to the documentation of Tree::Trie the return value of lookup_data depends on the setting of the deepsearch option when used in scalar context. 'exact' is probably the setting you want.