aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/TgLib/Api.pm3
-rw-r--r--lib/TgLib/Cache.pm3
-rw-r--r--lib/TgLib/Env.pm3
-rw-r--r--lib/TgLib/Logger.pm3
-rwxr-xr-xtgrecv3
-rwxr-xr-xtgsend3
6 files changed, 18 insertions, 0 deletions
diff --git a/lib/TgLib/Api.pm b/lib/TgLib/Api.pm
index e643a42..66c808f 100644
--- a/lib/TgLib/Api.pm
+++ b/lib/TgLib/Api.pm
@@ -1,5 +1,8 @@
package TgLib::Api;
+use strict;
+use warnings;
+
use JSON qw<encode_json decode_json>;
use HTTP::Request;
use LWP::UserAgent;
diff --git a/lib/TgLib/Cache.pm b/lib/TgLib/Cache.pm
index dbbf252..b1a3c2d 100644
--- a/lib/TgLib/Cache.pm
+++ b/lib/TgLib/Cache.pm
@@ -1,5 +1,8 @@
package TgLib::Cache;
+use strict;
+use warnings;
+
use Storable qw<store retrieve>;
use File::Basename qw<dirname>;
use File::Path qw<make_path>;
diff --git a/lib/TgLib/Env.pm b/lib/TgLib/Env.pm
index c019a2c..9cb86be 100644
--- a/lib/TgLib/Env.pm
+++ b/lib/TgLib/Env.pm
@@ -1,5 +1,8 @@
package TgLib::Env;
+use strict;
+use warnings;
+
use parent qw<Exporter>;
our @EXPORT = qw<$HOME $CONFIG_HOME $CACHE_HOME $TOKEN>;
diff --git a/lib/TgLib/Logger.pm b/lib/TgLib/Logger.pm
index 17a111d..c80d22b 100644
--- a/lib/TgLib/Logger.pm
+++ b/lib/TgLib/Logger.pm
@@ -1,5 +1,8 @@
package TgLib::Logger;
+use strict;
+use warnings;
+
use parent qw<Exporter>;
our @EXPORT = qw<new debug info warn>;
diff --git a/tgrecv b/tgrecv
index bd6e6ad..8456401 100755
--- a/tgrecv
+++ b/tgrecv
@@ -7,6 +7,9 @@
# Dependencies: HTTP-Message, JSON
################################################################################
+use strict;
+use warnings;
+
$main::VERSION = "0.1.1";
use Getopt::Long qw(:config auto_version);
diff --git a/tgsend b/tgsend
index 0ee318d..62aa347 100755
--- a/tgsend
+++ b/tgsend
@@ -7,6 +7,9 @@
# Dependencies: HTTP-Message, JSON
################################################################################
+use strict;
+use warnings;
+
$main::VERSION = "0.1.1";
use Getopt::Long qw(:config auto_version);