in reply to No of processors
There is Proc::ProcessTable, that works for Linux, Solaris and many more OSes.
Ciao, Valerio
Update:mce has the right answer