- or download this
### BEGINING OF FORK
#
...
}
else {
#do the rest of the script here.
- or download this
#!/usr/local/bin/perl -w
use strict;
...
sleep(1);
print "This is the return to the parent process\n";
}
- or download this
This is the original process the pid = 5292
This is the child process.. parentpid = 5292
This is the child process its pid = 5293
This is the return to the parent process