Can't use the ternary operator where the if/unless/otherwise is being used as a modifier.modifier? do you mean assignment like my $x = $A ? $B : $C; ?
The trap is simply that it is unless rather than if.How is that different a statement being !$x rather than $x and just missing/misreading the 'bang'?
In reply to Re^3: Useless <c>unless</c>
by davidrw
in thread Useless unless
by GrandFather
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |