in reply to Re: Short form (ternary) if else
in thread Short form (ternary) if else

my $vxdg = $vxdgs{$node}{$disk} || "";
This is short and sweet, but doesn't take into account a hash value of 0, which could be a valid value. So, if I had a hash value of 0, perl would evaluate it as false, and set the variable to blank.