Subject: | Better diagnostics if /proc/meminfo could not be opened |
Currently the following line is used to open /proc/meminfo:
open(INFIL,"/proc/meminfo") || die("Unable To Open /proc/meminfo\n");
Two problems here:
- The reason for the problem is missing --- the die() message should probably add also $!
- Because of the trailing "\n" it's not visible where the problem happens. It's probably better to remove the "\n" here.
Regards,
Slaven