Help for this page
my $pid = open my $lsfh, "-|", "sleep", 10 or die "Cannot exec sleep: $!\n"; ... waitpid $pid, 0; print "All done.\n";