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);
In reply to Re: Is this reliable?
by blue_cowdawg
in thread Is this reliable?
by misterperl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |