THe following code

my $cur_datetime=DateTime->new(year=>$fields[2], month=>$fields[1], 
day=>$fields[0], hour=>$fields[3], minute=>$fields[4], second=>$fields[5]);

is working properly on a 32-bit Suse Linux

but not in a 64-bit Suse Linux

giving the error below

The 'hour' parameter (undef) to DateTime::new was an 'undef', which is not one 
of the allowed types: scalar

The module DateTime is the exaclty the same.

Any idea on what might be going wrong?



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to