in reply to Hash reference undefined somewhere?
If for example, the functions are supposed to return arrays, you might need the following: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)], );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Hash reference undefined somewhere?
by bowei_99 (Friar) on Mar 09, 2011 at 23:23 UTC |