Ken, I really do understand the scope thing. I just screwed it up when I first posted. But given the correct scope...
Are you saying that the below code should work?or will it only work like:my $vxdg; (exists $vxdgs{$node}{$disk}) ? $vxdg=$vxdgs{$node}{$disk} : $vxdg="";
my $vxdg = exists $vxdgs{$node}{$disk} ? vxdgs{$node}{$disk} : '';
In reply to Re^4: Short form (ternary) if else
by gg48gg
in thread Short form (ternary) if else
by gg48gg
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |