in reply to Re: Compound statements within the conditional (ternary) operator
in thread Compound statements within the conditional (ternary) operator
A minor nit: I don't know about other Englishes, but for Yank-Canuck and I think Brit English usage, I would construct the plural slightly differently:
c:\@Work\Perl\monks>perl -wMstrict -le "for my $qty (0 .. 3) { printf qq{you bought $qty item%s today \n}, $qty == 1 ? '' : 's'; } " you bought 0 items today you bought 1 item today you bought 2 items today you bought 3 items today
Give a man a fish: <%-{-{-{-<
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Compound statements within the conditional (ternary) operator
by roboticus (Chancellor) on Apr 15, 2018 at 02:57 UTC |