more useful options | |
PerlMonks |
Re: Easy hash question (uninitialized value)by Lotus1 (Vicar) |
on May 16, 2018 at 13:54 UTC ( [id://1214657]=note: print w/replies, xml ) | Need Help?? |
Also check out the function exists. It lets you test if a key is in a hash. In this case it would help you debug but it's useful in general for validating hash keys, especially when they come from user input. I added the following at the end of your script:
Here is the result of running it:
In Section
Seekers of Perl Wisdom
|
|