in reply to I need to know if 32-bit or 64-bit perl is running my script.
What is wrong with using modules that already tackled that problem, like Proc::ProcessTable or Unix::Statgrab?