summaryrefslogtreecommitdiffstats
path: root/scripts/doc.pl
diff options
context:
space:
mode:
authorObfuscoder2014-10-17 20:34:00 +0200
committerObfuscoder2014-10-22 18:30:36 +0200
commit2329fe260d3393c6bcbc868cb3f7a33d324b1910 (patch)
tree90056b11938a47e1662c9e83eec6b08d6385914d /scripts/doc.pl
parent263a56d196da657b72ccf2b195b50008d6a988dc (diff)
downloadscripts.irssi.org-2329fe260d3393c6bcbc868cb3f7a33d324b1910.tar.bz2
Fix perlcritic issues for all scripts starting with b,c,d
Diffstat (limited to 'scripts/doc.pl')
-rw-r--r--scripts/doc.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/doc.pl b/scripts/doc.pl
index 2861b41..de0e3d6 100644
--- a/scripts/doc.pl
+++ b/scripts/doc.pl
@@ -202,7 +202,7 @@ sub load_doc {
@doc = ();
Irssi::print("Loading doc from $doc_file");
local *DOC;
- open(DOC,"$doc_file");
+ open(DOC, q{<}, $doc_file);
local $/ = "\n";
while (<DOC>) {
chop();
@@ -235,7 +235,7 @@ sub save_doc {
my $keyword="";
my $definition="";
if (-e $doc_file) {
- open(DOC,">$doc_file");
+ open(DOC, q{>}, $doc_file);
for ($x=0;$x < @doc;$x++) {
($keyword,$definition) = split /=/,$doc[$x],2;
print DOC "$keyword=$definition\n";