in reply to DateTime->now problem

It might help to know your version of Perl and of Data::Time; there's certainly nothing wrong with your code (except your failure to follow the formatting guidelines above and below the text box where you entered you question) under any win32 or Linux immediately available to me (w2k, XP, Vista, Ubuntu 10.04/Gnome or (ancient RHs).

Replies are listed 'Best First'.
Re^2: DateTime->now problem
by ikegami (Patriarch) on Apr 01, 2011 at 21:13 UTC

    Well, I'd say there could very well be a missing time_zone => 'local' argument, but it wouldn't cause the error.

    I would also like to know the version Params::Validate he has installed. The version can be obtained using

    perl -v | grep version perl -le'use DateTime; print DateTime->VERSION' perl -le'use Params::Validate; print Params::Validate->VERSION'

      Updated original post with, but will add these all here as well

      Perl version: 5.12.3

      DateTime version: 0.66

      Params::Validate version: 0.95