Explore BrainMass
Share

PERL Programming Validate Correctly

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)

© BrainMass Inc. brainmass.com August 17, 2018, 6:59 pm ad1c9bdddf

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 ...

Solution Summary

The expert examines PERL programming to validate correctly.

$2.19