Subject: | UnixDate: Not an ARRAY reference |
This code:
use Date::Manip;
$testdatum2 = UnixDate( "01.02.2010 22:25:29", '%d.%m.%Y %H:%M:%S' );
brings this bug:
Use of inherited AUTOLOAD for non-method YAML::Syck::LoadYAML() is
deprecated at
D:/strawberry/perl/site/lib/YAML/Syck.pm line 75, <DATA> line 335.
Not an ARRAY reference at D:/strawberry/perl/site/lib/Date/Manip/Date.pm
line 1352, <DATA> line 335.
perl -v brings:
This is perl 5, version 12, subversion 0 (v5.12.0) built for
MSWin32-x86-multi-thread
I'm using WIndows XP professional.
However this works:
use Date::Manip;
$test3 = UnixDate( "22:25:29", '%H:%M:%S' );
print $test3
Another workaround seems to be to use version 5 of your lib (and set the
timezone).