if (exists $a{'abd'} and exists $a{'abd'}->[0] and defined $a{'abd'}->[0])
There's no need to use exists. You know that $a{abd} is a reference if it exists, so just check if it is true. exists on array elements is deprecated, and doesn't really make much sense. So you can reduce this to:
if ($a{abd} && defined $a{abd}[0])
In reply to Re^2: restricting values to a nested datastructure
by zwon
in thread restricting values to a nested datastructure
by babp
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |