diff options
| author | Obfuscoder | 2014-10-17 20:34:00 +0200 |
|---|---|---|
| committer | Obfuscoder | 2014-10-22 18:30:36 +0200 |
| commit | 2329fe260d3393c6bcbc868cb3f7a33d324b1910 (patch) | |
| tree | 90056b11938a47e1662c9e83eec6b08d6385914d /scripts/doc.pl | |
| parent | 263a56d196da657b72ccf2b195b50008d6a988dc (diff) | |
| download | scripts.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.pl | 4 |
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"; |
