diff options
| author | Teddy Wing | 2017-12-15 00:15:34 +0100 |
|---|---|---|
| committer | Teddy Wing | 2017-12-15 00:16:40 +0100 |
| commit | 597272ba275406e6ae8e02af1065637eee53c32d (patch) | |
| tree | 10ee8d40d5842458fd8d8f647c27a99124a01f38 | |
| parent | bc90bd595598155ccafbe1cfd6fb3f044d038769 (diff) | |
| download | irssi-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.pl | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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', |
