Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: fork & END

by itub (Priest)
on Sep 07, 2005 at 00:58 UTC ( [id://489733]=note: print w/replies, xml ) Need Help??


in reply to fork & END

You can try something like this:
use POSIX qw(_exit); if (fork) { # parent } else { # child. # do stuff _exit(0); # "simple exit", does not run END } END { # do stuff; only run on parent }

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (2)
As of 2025-07-10 05:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.