Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^4: How to portably stop processes?

by haj (Vicar)
on Apr 01, 2023 at 12:43 UTC ( [id://11151412]=note: print w/replies, xml ) Need Help??


in reply to Re^3: How to portably stop processes?
in thread How to portably stop processes?

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?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11151412]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2024-04-19 05:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found