Perhaps you want to declare $vxdg outside the if, and only assign the value inside the if?
my $vxdg = (exists $foo) ? $bar : 'baz';
In reply to Re: Short form (ternary) if else
by SuicideJunkie
in thread Short form (ternary) if else
by gg48gg
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |