in reply to Useless unless
doesn't the ternary operator accomplish this already with b ? a : c; ? (And second example is just (my $o = b) ? a : b;)a if b; c otherwise;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Useless <c>unless</c>
by GrandFather (Saint) on Aug 05, 2005 at 23:17 UTC | |
by davidrw (Prior) on Aug 05, 2005 at 23:25 UTC | |
|
Re^2: Useless <c>unless</c>
by tilly (Archbishop) on Aug 07, 2005 at 06:05 UTC | |
by tye (Sage) on Aug 07, 2005 at 06:56 UTC |