concerning your code:
>
please try this instead
my $my_var = $param // "default";
Cheers Rolf
(addicted to the 𐍀𐌴𐍂𐌻 Programming Language :)
Wikisyntax for the Monastery
In reply to Re: Conditional initialization of lexical (my) variables
by LanX
in thread Conditional initialization of lexical (my) variables
by muthm
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |