in reply to Conditional for statement block (not just bare statement)
Yes. But why? What does that (and the fun provided by ikegami) buy you? What value does it add to your code to forsake a simple, traditional if block?
versusif ($true) { print "eenie\n"; }
I can understand prefering a do-while over a while loop, but this is mostly pointless. I never write single line if statement anymore because i find they get in the way of debugging and growth. But I will use a do-while from time to time because it is necessary.do { print "meenie\n"; } if ($true);
jeffa
L-LL-L--L-LL-L--L-LL-L-- -R--R-RR-R--R-RR-R--R-RR B--B--B--B--B--B--B--B-- H---H---H---H---H---H--- (the triplet paradiddle with high-hat)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Conditional for statement block (not just bare statement)
by oko1 (Deacon) on Dec 17, 2008 at 01:24 UTC |