You don't even need the exists (assuming you don't have a weird freeform data structure):
if (Hash{$neededVal} and $Hash{$neededVal}{param1} and $Hash{$neededVal}{param1}{key1} > 4) {
In reply to Re^2: Checking if hash value exists without implicitly defining it
by Anonymous Monk
in thread Checking if hash value exists without implicitly defining it
by Doctrin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |