diff options
| author | David Leadbeater | 2015-01-10 17:49:34 +0000 |
|---|---|---|
| committer | David Leadbeater | 2015-01-10 17:49:34 +0000 |
| commit | 2d920d6f610e176bf121f9089f21956595df70e9 (patch) | |
| tree | 287ac1dba07509317309acab3161f5da286958e9 /scripts/file.pl | |
| parent | 1bae3cffef57d4d46d0230aa4f44cc52c7671b93 (diff) | |
| parent | d84f1e1808b3252af83e4963eccfd1e4f19c5326 (diff) | |
| download | scripts.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.pl | 6 |
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; }; |
