Subject: | use module Sys::CPU to figure # of processors |
There is a Linux-specific code (with a failover case, ok, but nonetheless) in Data::DPath, trying to figure out the number of processors available in a system. Instead of trying to open /proc/cpuinfo manually, I suggest you use the module Sys::CPU:
http://search.cpan.org/~mkoderer/Sys-CPU-0.52/CPU.pm
It seems to do exactly what you intended.
Cheers,
Alexei
http://search.cpan.org/~mkoderer/Sys-CPU-0.52/CPU.pm
It seems to do exactly what you intended.
Cheers,
Alexei