summaryrefslogtreecommitdiffstats
path: root/scripts/file.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/file.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/file.pl')
-rw-r--r--scripts/file.pl6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/file.pl b/scripts/file.pl
index c088561..95c573e 100644
--- a/scripts/file.pl
+++ b/scripts/file.pl
@@ -1,3 +1,5 @@
+use strict;
+use vars qw($VERSION %IRSSI);
my $help = <<EOF;
Usage: (all on one line)
@@ -26,8 +28,6 @@ $VERSION = 1.0;
url => "http://irssi.dgl.cx/"
);
-use strict;
-
Irssi::command_bind('file', sub {
my $data = shift;
@@ -64,7 +64,7 @@ Irssi::command_bind('file', sub {
}
# or do borrowed from one of juerd's scripts (needs 5.6 though)
- open(FILE, "<$data") or do {
+ open(FILE, "<", $data) or do {
print "Error opening '$data': $!";
return;
};