summaryrefslogtreecommitdiffstats
path: root/scripts/getop.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/getop.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/getop.pl')
-rw-r--r--scripts/getop.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/getop.pl b/scripts/getop.pl
index 1dbd75c..4b1914c 100644
--- a/scripts/getop.pl
+++ b/scripts/getop.pl
@@ -343,7 +343,7 @@ sub channel_sync {
sub savegetop {
local *fp;
- open (fp, ">$getopfile") or die "Couldn't open $getopfile for writing";
+ open (fp, ">", $getopfile) or die "Couldn't open $getopfile for writing";
for my $ircnet (keys %getop) {
for my $chan (keys %{$getop{$ircnet}}) {
@@ -361,7 +361,7 @@ sub loadgetop {
return unless (-e $getopfile);
local *fp;
- open (fp, "<$getopfile") or die "Couldn't open $getopfile for reading";
+ open (fp, "<", $getopfile) or die "Couldn't open $getopfile for reading";
local $/ = "\n";
while (<fp>) {