in reply to Is this reliable?
As far as I know the results of a comparative will always evaluate as a non-zero if true. That said I'd be more comfortable doing things this way:
That should eliminate any doubt of the matter.my $r = (temp> 100? 1000: 1250);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Is this reliable?
by AnomalousMonk (Archbishop) on Feb 18, 2013 at 16:59 UTC |