in reply to Re: (jeffa) Re: Expand Ranges in Lists of Numbers
in thread Expand Ranges in Lists of Numbers
"Sometimes I wish one line blocks for if-else statements didn't require brackets..."
I use to say the same thing until i realized they don't:A caveat i teach my C++ lab students (i am a graduate teaching assistant at MTSU) is that even though braces are optional for one line blocks, they should get in the habit of using them always. Why? Because 9 times outta 10 you will want to add a second line in the near future. Murphy's law or something ... ;)print "that's the answer" if $answer == 42; die "that's not your file!" unless -o $file;
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: (jeffa) 3Re: Expand Ranges in Lists of Numbers
by The Mad Hatter (Priest) on Jun 09, 2003 at 02:37 UTC | |
by jeffa (Bishop) on Jun 09, 2003 at 04:00 UTC | |
by The Mad Hatter (Priest) on Jun 09, 2003 at 12:16 UTC |