$row = [];
}
}
+# Processing the last line (if there are any modules left)
+if (scalar(@$row) > 0) {
+ # Extending $row to the table size
+ $$row[3] = '';
+ # Pushing the last line
+ push (@$table, {row => $row});
+}
## ## $table
$template->param( table => $table );
#get file location
my $dir = C4::Context->config('intranetdir');
-open( FILE, "$dir" . "/docs/history.txt" );
+open( my $file, "<", "$dir" . "/docs/history.txt" );
my $i = 0;
my @rows2 = ();
my $row2 = [];
-my @lines = <FILE>;
-close(FILE);
+my @lines = <$file>;
+close($file);
shift @lines; #remove header row