my $get_hosts = GetHosts($_, \%data); my $get_new = GetNewFWRules($_, \%data); print "Do I equal what you think i do? get_hosts = '$get_hosts'\n"; print "Do I equal what you think i do? get_new = '$get_new'\n"; my %do_for = ( get_hosts => $get_hosts, get_new_fw_rules => $get_new, ); #### my %do_for = ( get_hosts => [GetHosts($_, \%data)], get_new_fw_rules => [GetNewFWRules($_, \%data)], );