in reply to Short form (ternary) if else
Also, in your if/else statement, if you declare $vxdg inside the if/else like you are doing, it goes out of scope by the time you get out of the if/else block.my $vxdg = exists $vxdg{$node}{$disk} ? $vxdg{$node}{$disk} : '';
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Short form (ternary) if else
by gg48gg (Sexton) on Feb 08, 2012 at 20:29 UTC | |
by tobyink (Canon) on Feb 09, 2012 at 11:18 UTC | |
by DStaal (Chaplain) on Feb 09, 2012 at 21:40 UTC |