Or even $r += ($temp > 100 ? 250 : 0); or $temp > 100 and $r += 250;
In reply to Re^2: Is this reliable? by AnomalousMonk in thread Is this reliable? by misterperl