Perl script timer on program launch

So I am attempting to get a short but complex perl script to be able to time out an application that I will launch from a command line. The terminal I use is MKS C SHELL and I am having trouble doing the a job spawn that will launch the application and keep time on it.

I know you could do this in pearl doing something like

my $job = Win32::Job->new;
        $job->spawn(something,something,something);
        $job->run(time);

Could someone help me understand how this works, I believe I am having most trouble witht the spawn part as I do not exactly understand what are the arguments.

Thank you

Win32::Job - Run sub-processes in a "job" environment seems to say you are on the right track.

Spawn prepares a child process to run the command, and run lets it process time seconds or less. The first spawn argument is the actual executable, the second is the full command line, and the third is setup stuff like window, console, iconfiy and i/o redirection.