Subject: | SpeedyCGI and Date::Manip don't like each other |
Date: | Tue, 13 Nov 2012 16:00:36 -0500 |
To: | bug-Date-Manip [...] rt.cpan.org |
From: | Haroon Rafique <haroon.rafique [...] gmail.com> |
SpeedyCGI can be obtained from:
http://daemoninc.com/SpeedyCGI/
With following script (date.pl), I can run regular perl as many times as I
like.
use Date::Manip qw(UnixDate);
my ( $m, $d, $y ) = UnixDate('yesterday', '%m', '%d', '%Y');
print 'Yesterday---> $m: ', $m, ' $d: ', $d, ' $y: ', $y, "\n";
Regular perl:
$ perl date.pl
Yesterday---> $m: 11 $d: 12 $y: 2012
Speedy (1st time - correct answer):
$ speedy date.pl
Yesterday---> $m: 11 $d: 12 $y: 2012
Speedy (every subsequent time):
$ speedy date.pl
ERROR: [date_period] Invalid zone: america/toronto
ERROR: [date_period] Invalid zone: america/toronto
ERROR: [date_period] Invalid zone: america/toronto
ERROR: [date_period] Invalid zone: america/toronto
Can't use an undefined value as an ARRAY reference at
/usr/lib/perl5/vendor_perl/5.16.1/Date/Manip/Base.pm line 817.
Can you help me solve this or can you reproduce the bug on your machine(s)?
$ perl -v
This is perl 5, version 16, subversion 1 (v5.16.1) built for i686-linux
$ uname -a
Linux haroon.sis.utoronto.ca 2.6.38-gentoo-r4 #1 SMP Wed Apr 11 20:48:13
EDT 2012 i686 Intel(R) Core(TM)2 CPU 6600 @ 2.40GHz GenuineIntel GNU/Linux
$ perl -MDate::Manip -e 'print $Date::Manip::VERSION'
6.36
--
Haroon