in reply to Can't use an undefined value as an ARRAY reference

Obviously, $dataSet{results} is not defined.

See Data::Dumper for dumping the contents of %dataSet.