Bod, I suggest you consider dropping your "major exception" in favour of LanX's excellent advice. That is, I prefer LanX's:
to your:$input //= 1; # default if undefined
$input = 1 unless defined $input;
See also:
In reply to Re^3: Conditional initialization of my-variables
by eyepopslikeamosquito
in thread Conditional initialization of my-variables
by muthm
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |