Code

- Corrected open perl function, corrected variable passing to open and close
authoropensides <opensides@594d385d-05f5-0310-b6e9-bd551577e9d8>
Sun, 28 Mar 2010 00:01:24 +0000 (00:01 +0000)
committeropensides <opensides@594d385d-05f5-0310-b6e9-bd551577e9d8>
Sun, 28 Mar 2010 00:01:24 +0000 (00:01 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17326 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-si/server/events/logHandling.pm

index 9fdce81d0e9d4fed943963a002573263cc891ac4..42af112bc225f540ebde56dfb24a82ea46b76b1b 100644 (file)
@@ -1,5 +1,15 @@
 package logHandling;
+
+
+use strict;
+use warnings;
+
 use Exporter;
+use GOSA::GosaSupportDaemon;
+use Data::Dumper;
+use File::Spec;
+use MIME::Base64;
+
 @ISA = qw(Exporter);
 my @events = (
     "get_events",
@@ -13,13 +23,6 @@ my @events = (
     );
 @EXPORT = @events;
 
-use strict;
-use warnings;
-use GOSA::GosaSupportDaemon;
-use Data::Dumper;
-use File::Spec;
-use MIME::Base64;
-
 BEGIN {}
 
 END {}
@@ -301,9 +304,9 @@ sub get_log_file_by_date_and_mac {
     
     # read log file
     my $log_content;
-    open(FILE, "<$act_log_file");
-    my @log_lines = <FILE>;
-    close(FILE);
+    open(my $FILE, "<", "$act_log_file");
+    my @log_lines = <$FILE>;
+    close($FILE);
 
     # prepare content for xml sending
     $log_content = join("", @log_lines);