aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2017-12-15 00:15:34 +0100
committerTeddy Wing2017-12-15 00:16:40 +0100
commit597272ba275406e6ae8e02af1065637eee53c32d (patch)
tree10ee8d40d5842458fd8d8f647c27a99124a01f38
parentbc90bd595598155ccafbe1cfd6fb3f044d038769 (diff)
downloadirssi-vimput-597272ba275406e6ae8e02af1065637eee53c32d.tar.bz2
Make `$VERSION` and `%IRSSI` `our` variables
Learned about the Perl `our` keyword from https://github.com/shabble/irssi-docs/wiki/Guide#preamble which recommends using it. This allows us to eliminate the `use vars` line. Neat.
-rw-r--r--vimput.pl5
1 files changed, 2 insertions, 3 deletions
diff --git a/vimput.pl b/vimput.pl
index fc50740..971616c 100644
--- a/vimput.pl
+++ b/vimput.pl
@@ -1,10 +1,9 @@
use strict;
-use vars qw($VERSION %IRSSI);
use Irssi;
-$VERSION = '1.0';
-%IRSSI = {
+our $VERSION = '1.00';
+our %IRSSI = {
authors => 'Teddy Wing',
contact => 'irssi@teddywing.com',
name => 'Vimput',