summaryrefslogtreecommitdiffstats
path: root/scripts/hitcount.pl
diff options
context:
space:
mode:
authorDavid Leadbeater2015-01-10 17:49:34 +0000
committerDavid Leadbeater2015-01-10 17:49:34 +0000
commit2d920d6f610e176bf121f9089f21956595df70e9 (patch)
tree287ac1dba07509317309acab3161f5da286958e9 /scripts/hitcount.pl
parent1bae3cffef57d4d46d0230aa4f44cc52c7671b93 (diff)
parentd84f1e1808b3252af83e4963eccfd1e4f19c5326 (diff)
downloadscripts.irssi.org-2d920d6f610e176bf121f9089f21956595df70e9.tar.bz2
Merge branch 'perlcritic-e-l' of git://github.com/obfuscoder/scripts.irssi.org into obfuscoder-perlcritic-e-l
Conflicts: scripts/eng_no_translate_dpryo.pl
Diffstat (limited to 'scripts/hitcount.pl')
-rw-r--r--scripts/hitcount.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/hitcount.pl b/scripts/hitcount.pl
index 3af36e1..545aee0 100644
--- a/scripts/hitcount.pl
+++ b/scripts/hitcount.pl
@@ -1,5 +1,6 @@
# $Id: hitcount.pl,v 1.3.2.2 2002/03/05 18:19:28 shrike Exp shrike $
+use strict;
use vars qw($VERSION %IRSSI);
my @rev = split(/ /, "$Revision: 1.3.2.2 $n");
$VERSION = "1.3";
@@ -49,7 +50,6 @@ $VERSION = "1.3";
# Add ignore regexp, to prevent f.ex. css-files from increasing counter
use Irssi::TextUI;
-use strict;
# Debug level - higher levels print out more crap
my $debug_level = 0;
@@ -73,7 +73,7 @@ sub get_hitcount {
($total_hitcount, $my_hitcount) = (0);
# Go through the access log and count matches to the given regexp
- if(open STUFF, "$filename")
+ if(open STUFF, "<", $filename)
{
while (<STUFF>)
{