in reply to (jeffa) 3Re: Expand Ranges in Lists of Numbers
in thread Expand Ranges in Lists of Numbers
Yeah, but there is no "elegant" way to do thisprint "that's the answer" if $answer == 42;
You'd have to do something likeif ($answer == 42) print "that's the answer"; else print "you're a jerk. a complete kneebiter.";
print "that's the answer" if $answer == 42; print "you're a jerk. a complete kneebiter." unless $answer == 42;
9 times outta 10 you will want to add a second line in the near future.Heh. I bet at first they ignore your advice. Then they keep on having to add braces and they realize that you're right. ; )
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(jeffa) 5Re: Expand Ranges in Lists of Numbers
by jeffa (Bishop) on Jun 09, 2003 at 04:00 UTC | |
by The Mad Hatter (Priest) on Jun 09, 2003 at 12:16 UTC |