Share
Explore BrainMass

PERL Programming

I am having trouble in getting the sub bodytemp to validate correctly. For example if the user enters 102 for the temp the program will state the patient has expired which is not correct.

(See attached file for full problem description)

Attachments

Solution Preview

The reason is because all of the checking such as if($btemp > 102.0 && $btemp < 106.0) are just for greater than or less ...

$2.19