Skip Menu |

This queue is for tickets about the Time-Piece CPAN distribution.

Report information
The Basics
Id: 88457
Status: resolved
Priority: 0/
Queue: Time-Piece

People
Owner: Nobody in particular
Requestors: tokuhirom+cpan [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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(
Thanks, fixed. For details, see: https://github.com/rjbs/Time-Piece/pull/2 -- rjbs