Perl Monk, Perl Meditation | |
PerlMonks |
Re^3: How Do I End Up With a Larger Number of Hash Keys Here?by BillKSmith (Monsignor) |
on Mar 06, 2020 at 16:29 UTC ( [id://11113911]=note: print w/replies, xml ) | Need Help?? |
Its probably to late, but I do want to point out that your original code would work as intended (and perhaps even be clearer) if you test the levels separately. The "short circuit" feature of the "and" operator prevents the troublesome low-level test from running unless the upper-level key exists.
Bill
In Section
Seekers of Perl Wisdom
|
|