in reply to Re^3: Short form (ternary) if else
in thread Short form (ternary) if else
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} : '';
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Short form (ternary) if else
by kcott (Archbishop) on Feb 08, 2012 at 23:06 UTC | |
by Riales (Hermit) on Feb 08, 2012 at 23:20 UTC | |
by wrog (Friar) on Feb 08, 2012 at 23:32 UTC | |
by Riales (Hermit) on Feb 08, 2012 at 23:43 UTC | |
by kcott (Archbishop) on Feb 08, 2012 at 23:59 UTC | |
by gg48gg (Sexton) on Feb 09, 2012 at 00:05 UTC | |
|
Re^5: Short form (ternary) if else
by AnomalousMonk (Archbishop) on Feb 09, 2012 at 03:07 UTC | |
|
Re^5: Short form (ternary) if else
by Marshall (Canon) on Feb 09, 2012 at 00:06 UTC |