Sure, if ageCheck always returns an exception. But then it wouldn't be an exception, would it? So either add the necessary if, or rename the variable to something that makes more sense (such as "result").
(As for the line breaks, I added them so the code looks better on PerlMonks. There's no reason to keep them.)
In reply to Re^3: Initialized Variable getting Uninitialized Warning
by ikegami
in thread Initialized Variable getting Uninitialized Warning
by drw
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |