diff GrepFile.pl @ 5:7b3d89b8fc9f draft

Uploaded
author geert-vandeweyer
date Mon, 28 Jul 2014 07:50:55 -0400
parents 606e24c6fda0
children
line wrap: on
line diff
--- a/GrepFile.pl	Mon Jul 28 07:45:02 2014 -0400
+++ b/GrepFile.pl	Mon Jul 28 07:50:55 2014 -0400
@@ -117,10 +117,10 @@
 	for ($i = 1; $i<= $nrgrep ; $i++) {
 		${"grep$i"}->join();
 	}
+
+	$printqueue->enqueue(undef);
+	$print->join();
 }
-$printqueue->enqueue(undef);
-$print->join();
-
 system("cp $tmpdir/result.txt '$outfile'");
 
 system("rm -Rf $tmpdir");