Another alternative would be to switch to threads. Put the code that used to be your parent, into a thread, and you can halt the thread, then reuse or restart it with fresh virgin data.
In reply to Re: PERL: stop and restart parent process without killing child
by zentara
in thread PERL: stop and restart parent process without killing child
by zradu
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |