summaryrefslogtreecommitdiffstats
path: root/scripts/getop.pl
diff options
context:
space:
mode:
authorDavid Leadbeater2015-01-10 17:50:12 +0000
committerDavid Leadbeater2015-01-10 17:50:12 +0000
commit3350aef6b04f0d33ad52b41179c6742a98d2aa1f (patch)
tree287ac1dba07509317309acab3161f5da286958e9 /scripts/getop.pl
parent1bae3cffef57d4d46d0230aa4f44cc52c7671b93 (diff)
parent2d920d6f610e176bf121f9089f21956595df70e9 (diff)
downloadscripts.irssi.org-3350aef6b04f0d33ad52b41179c6742a98d2aa1f.tar.bz2
Merge branch 'obfuscoder-perlcritic-e-l' into gh-pages
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>) {