in reply to Re^2: Conditional initialization of my-variables
in thread Conditional initialization of my-variables
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:
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Conditional initialization of my-variables
by LanX (Saint) on Apr 08, 2023 at 12:57 UTC |