Really write to tags file and close fh
authorAlexander Wirt <formorer@grml.org>
Wed, 11 Jan 2012 12:42:02 +0000 (13:42 +0100)
committerAlexander Wirt <formorer@grml.org>
Wed, 11 Jan 2012 12:42:02 +0000 (13:42 +0100)
grml-tips-tags

index 1bb3920..3b27469 100755 (executable)
@@ -28,4 +28,5 @@ while (my $line = <$fh>) {
 my %seen = ();
 @tags = grep { ! $seen{$_} ++ } @tags;
 
-print join("\n", @tags) . "\n";
+print $fh join("\n", @tags) . "\n";
+close($fh)