I want to do a check like
if (exists $h{A} and exists $h{A}{B} and exists $h{A}{B}{C}) { }
Is there a way to do this more compactly? (Check for existence of a key without auto-vivifying the path?)
In reply to recursive exists in perl by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |