Grimey has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl -w use strict; use DateTime; my $now = DateTime->now;
-------------------------------------------------
When I attempt to run the program I get to following:
$ perl perltest.pl 'regex' validation parameter for 'DateTime::from_epoch must be a string or qr// regex at /usr/local/lib64/perl5/DateTime.pm line 486 DateTime::from_epoch(undef, 'epoch', 1301690690) called at /usr/local/lib64/perl5/DateTime.pm line 511 DateTime::now('DateTime') called at perltest.pl line 6
----------------------------------------------------------
I attempted to look at the DateTime.pm file, but I couldn't see the problem in from_epoch().
I have used this module on a different server before with success. On the new server (redhat 6.0) DateTime installed from CPAN without a fuss, but I can't use it.
Please let me know if I have done anything incorrectly, I am a first time poster here and would be grateful for any help as googling this issue has brought information.
This is perl 5, version 12, subversion 3 (v5.12.3) built for x86_64-linux-thread-multi
DateTime is up to date (0.66).
perl -le'use Params::Validate; print Params::Validate->VERSION'
0.95
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: DateTime->now problem
by ikegami (Patriarch) on Apr 01, 2011 at 21:25 UTC | |
by Grimey (Novice) on Apr 01, 2011 at 21:35 UTC | |
by ikegami (Patriarch) on Apr 01, 2011 at 21:47 UTC | |
by Grimey (Novice) on Apr 01, 2011 at 21:55 UTC | |
by ikegami (Patriarch) on Apr 01, 2011 at 21:58 UTC | |
| |
by ikegami (Patriarch) on Apr 01, 2011 at 21:39 UTC | |
by Grimey (Novice) on Apr 01, 2011 at 21:45 UTC | |
by Grimey (Novice) on Apr 01, 2011 at 21:29 UTC | |
by ikegami (Patriarch) on Apr 01, 2011 at 21:34 UTC | |
|
Re: DateTime->now problem
by eff_i_g (Curate) on Apr 01, 2011 at 21:03 UTC | |
by ikegami (Patriarch) on Apr 01, 2011 at 21:09 UTC | |
|
Re: DateTime->now problem
by ww (Archbishop) on Apr 01, 2011 at 21:07 UTC | |
by ikegami (Patriarch) on Apr 01, 2011 at 21:13 UTC | |
by Grimey (Novice) on Apr 01, 2011 at 21:19 UTC | |
|
Re: DateTime->now problem
by Khen1950fx (Canon) on Apr 01, 2011 at 22:22 UTC |