my $type = "add"; my $redo; $type eq "add" ? $redo = "wiki_add2" : $redo = "wiki_edit2"; print "With type: $type, we could redo: $redo \n"; my $type = "edit"; my $redo; $type eq "add" ? $redo = "wiki_add2" : $redo = "wiki_edit2"; print "With type: $type, we could redo: $redo \n";
In reply to true/false condition - what am I doing wrong? by ultranerds
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |