You get a wet-bulb temperature of . if ($rh{corf} eq Fahrenheit) { &ctof($tguess); $tguessf = $F; $~ = DP2; write; } else { $~ = DP3; write; } format DP2 = @###.# degrees Fahrenheit $tguessf . format DP3 = @###.# degrees Celsius $tguess . if ($rh{corf} eq Fahrenheit) { &ctof($dewp); $dewpf = $F; $~ = DP4; write; } else { $~ = DP5; write; } format DP4 = and a dewpoint temperature of @###.# degrees Fahrenheit. $dewpf . format DP5 = and a dewpoint temperature of @###.# degrees Celsius. $dewp . if ($rh{rh} > 100) { print "
The relative humidity is greater than 100 percent, this only rarely occurs in the atmosphere. You may want to go back and double check your entries.
"; }