That should have been:
die "$type doesn't exist in %{\$hashref} or isnt a hash ref" unless exists $hashref->{$type} && ref $hashref->{$type} eq 'HASH' +;
Dave
In reply to Re^7: Not a HASH reference error
by davido
in thread Not a HASH reference error
by briandanderson1977
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |