Script written in perl to start a process and kill it after a specified amount of time