|
|
| We don't bite newbies here... much | |
| PerlMonks |
Re: Detecting an undefined hash keyby GrandFather (Saint) |
| on Oct 01, 2008 at 10:52 UTC ( [id://714776]=note: print w/replies, xml ) | Need Help?? |
|
Prints:
Note that you could use exists for your test instead of defined. You could also reduce the number of parenthesis to make the code more readable:
Update: Struck silliness. Left code as a nice template for playing with/testing/demonstrating option processing. Perl reduces RSI - it saves typing
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||||