![]() |
|
Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re^4: How to portably stop processes?by haj (Priest) |
on Apr 01, 2023 at 12:43 UTC ( #11151412=note: print w/replies, xml ) | Need Help?? |
All right, create a sub called "KillProc()" and then put an if statement in that sub. Execute block A if it's Linux, or execute block B if it's Windows. Portable. Done! Why should I bother? I already have a satisfactory solution with Proc::Background, and I wrote that I am happy with it. It's that simple. Why should I even consider to write the same logic myself?
In Section
Seekers of Perl Wisdom
|
|