in reply to Re^4: Not a HASH reference error
in thread Not a HASH reference error
After line 53, add this:
die "$type doesn't exist in %{\$hashref}" or isnt a hash ref unless exists $hashref->{$type} && ref $hashref->{$type} eq 'HASH';The point is that the caller is passing $hashref, and @type_order. But one (or more) of the types in @type_order is either not a key in %{$hashref}, or the value of that key is itself not a hashref.
Dave
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Not a HASH reference error
by briandanderson1977 (Novice) on Feb 26, 2016 at 19:59 UTC | |
by davido (Cardinal) on Feb 27, 2016 at 03:28 UTC |