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 }
In reply to Re: fork & END
by itub
in thread fork & END
by tlm
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |