Further to marto's reply: As a basic introduction, see perlintro. Also see the articles in the Getting Started with Perl and Getting Deeper Into Perl sections of the monastery's Tutorials wing. My first thought would be something along the lines of
while (1) {
while (process_is_still_going()) {
sleep 30;
}
restart_the_process();
}
(Note that the infinite
while (1) { ... } loop has no way to ever end the program.) See
Compound Statements in
perlsyn for info on
while-loops. See
sleep. This loop calls subroutines; see
perlsub.
Please try to come up with some code. The closer it is to something we can play with too, the better; see Short, Self-Contained, Correct Example. When you have some code about which you still have questions, please come back and we'll see if we can answer those questions.
Give a man a fish: <%-{-{-{-<