in reply to Return a hashref into another

You are mixing scalars($master_ref) and lists ().

Try this instead:

$master_ref = { %$master_ref, %{return_hash_ref()} }; # line 18 # .. both sides of "=" are now scalars # hashrefs are expanded to hashes

        "I can cast out either one of your demons, but not both of them." -- the XORcist