foreach my $host (@arrayofhosts) { defined (my $pid = fork) or die "Cannot fork: $!"; unless ($pid) { # go to town with $host exit 0; # very important!!! don't let it get past here } }
-- Randal L. Schwartz, Perl hacker
In reply to Re: Using a stack with fork()
by merlyn
in thread Using a stack with fork()
by mp3car-2001
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |