Several issues.
if ($pid = fork) { # parent ... } elsif ($pid == 0) { child ... exit; }
Last, you need loops in the parent and the child functions for the repeating to happen.
Try to fix your program first, then read the spoiler ;-)
In reply to Re: Creating a Pipe
by shmem
in thread Creating a Pipe
by grjoe21
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |