in reply to Re^8: Invoke sub whose name is value of scalar
in thread Invoke sub whose name is value of scalar

You need to adjust your syntax, try:
$node = $node->{"parent"}; ## Line 33

Update: this is incorrect, please ignore.