#Error here: Useless use of hash element in void context $singleton->{$XMLfile_name}=>$_;