in reply to Re^3: Not a HASH reference error
in thread Not a HASH reference error
AHHH okay, thank you for the information, that was very valuable. Here is what I found for $hashref within the script. It only shows up on line 49 and line 55.
47 # OUTPUT returns true/false that the specified db2 configuration fi +le could be processed appropriately for the given action. 48 my $log_pre = whatsub(); 49 my ($action,$hashref,@type_order) = @_ or (warn "$log_pre +Invalid arguments" and return 0); 50 51 # Iterate over the configuration types listed in @type_ord +er 52 foreach my $type (@type_order) { 53 print "$log_pre running $action for $type entries\ +n"; 54 # Iterate over all items of that type 55 my $type_hash = $hashref->{$type}; + #shortcut to smaller hash 56 foreach my $item (keys %{$type_hash}) { 57 print "$log_pre running $action for $type +$item\n"; 58 my $item_hash = $type_hash->{$item}; + #shortcut to smaller hash 59 #Add values for type and action into the h +ash 60 $item_hash->{'name'} = $item; 61 $item_hash->{'type'} = $type; 62 $item_hash->{'action'} = $action; 63 #print Dumper($item_hash);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Not a HASH reference error
by davido (Cardinal) on Feb 24, 2016 at 22:24 UTC | |
by briandanderson1977 (Novice) on Feb 26, 2016 at 19:59 UTC | |
by davido (Cardinal) on Feb 27, 2016 at 03:28 UTC |