Skip Menu |

This queue is for tickets about the Date-Manip CPAN distribution.

Report information
The Basics
Id: 71659
Status: resolved
Priority: 0/
Queue: Date-Manip

People
Owner: Nobody in particular
Requestors: ulises.sci [...] gmail.com
Cc:
AdminCc:

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



Subject: Can't use an undefined value as an ARRAY
I made a DLL with perl source code. It looks like everything works nice in most computers the dll run on but ONE computer. I don't have the computer's specifications right know but will edit this post when I have them. The complete error message: Can't use an undefined value as an ARRAY reference at /<name.dll>Date/Manip/Base.pm line 817, <DATA> line 496 Show quoted text
>perl -v
This is perl 5, version 12, subversion 3 (v5.12.3) built (with 9 registered patches, see perl -V for more detail) The sub from which I call to ParseDate and UnixDate sub parseDate { my $date = shift; die "No date supplied\n" unless $date; my $parsed = Date::Manip::ParseDate($date); #print "ConvertDate parsed = $parsed\n"; die "Unparseable date\n" unless $parsed; $formated = UnixDate($parsed,"%Y-%m-%dT%H:%M:%S"); #print "formated = $formated\n"; return $formated; } Thanks.
Subject: ERROR.jpg
Download ERROR.jpg
image/jpeg 30.1k
ERROR.jpg
Could you include the actual date string which caused this problem to occur?
From: ulises.sci [...] gmail.com
El Jue Oct 13 11:34:00 2011, SBECK escribió: Show quoted text
> Could you include the actual date string which caused this problem to
occur? I've couldn't reproduce the error, waiting for user to give me PC specifications but running the method again with print debugs: sub parseDate { my $date = shift; print "date before all = $date\n"; die "No date supplied\n" unless $date; my $parsed = Date::Manip::ParseDate($date); print "ConvertDate parsed = $parsed\n"; die "Unparseable date\n" unless $parsed; $formated = UnixDate($parsed,"%Y-%m-%dT%H:%M:%S"); print "formated = $formated\n"; return $formated; } Outcome: date before all = 2011-10-13T16:20:18.772Z ConvertDate parsed = 2011101311:20:18 formated = 2011-10-13T11:20:18
Can't debug this without more information. I'm unable reproduce the error.