Please don't do that in the general case (it may work for whatever Win32::Process does, I don't know). Assuming that everything that isn't Windows is the same is Wrong. Use
Devel::CheckOS to check for things like "is this Windows?" or "is this Unix?" or "is this VMS?" or ...