Subject: | Missing requirement in Time::Seconds. |
Time::Seconds forgot to load Exporter.pm.
It causes following unexpected behavior.
% perl -e 'use Time::Seconds; warn ONE_DAY'
ONE_DAY at -e line 1.
% perl -e 'use Time::Seconds; use Time::Piece; warn ONE_DAY'
ONE_DAY at -e line 1.
Here is a proposed patch.
diff --git a/Seconds.pm b/Seconds.pm
index 404e613..4838c07 100644
--- a/Seconds.pm
+++ b/Seconds.pm
@@ -4,6 +4,7 @@ use vars qw/@EXPORT @EXPORT_OK @ISA/;
our $VERSION = '1.22';
+require Exporter;
@ISA = 'Exporter';
@EXPORT = qw(