in reply to Re^2: PAR::packer with Date::Manip gives error
in thread PAR::packer with Date::Manip gives error

It's a little tedious to track down why those variables are uninitialized, but I'd think it's because still other modules are missing from the PAR package....  The author seems to have gone from one extreme to the other: in earlier releases, there was only one big Date/Manip.pm file, while the current release comes with around 940 individual .pm files :)  Not all of them are being loaded in every case...

When I run your script under strace (my way of dependency scanning), it reveals the following modules effectively being used:

$ strace -eopen ./817045.pl 2>&1 | grep 'Date/Manip.*= [0-9]\+$' open("./Date/Manip/Lang/english.pm", O_RDONLY) = 6 open("./Date/Manip.pm", O_RDONLY) = 8 open("./Date/Manip/Date.pm", O_RDONLY) = 9 open("./Date/Manip/Obj.pm", O_RDONLY) = 10 open("./Date/Manip/Base.pm", O_RDONLY) = 11 open("./Date/Manip/Lang/index.pm", O_RDONLY) = 11 open("./Date/Manip/TZ.pm", O_RDONLY) = 11 open("./Date/Manip/Zones.pm", O_RDONLY) = 11 open("./Date/Manip/Delta.pm", O_RDONLY) = 8 open("./Date/Manip/Recur.pm", O_RDONLY) = 8 open("./Date/Manip/TZ/euberl00.pm", O_RDONLY) = 4 open("./Date/Manip/TZ/etgmt00.pm", O_RDONLY) = 4

You probably need to make sure those are part of the PAR package.  The TZ/* ones may be different in your case, so you might want to run the above strace command yourself... (in case you're on Linux/Unix)

Replies are listed 'Best First'.
Re^4: PAR::packer with Date::Manip gives error
by gri6507 (Deacon) on Jan 12, 2010 at 22:13 UTC
    That's exactly right. Here's what I had to add to my script to work:
    use Date::Manip::Lang::english; use Date::Manip::Lang::index; use Date::Manip::Date; use Date::Manip::Delta; use Date::Manip::Recur; use Date::Manip::Zones; use Date::Manip::Obj; use Date::Manip::TZ; use Date::Manip::Base; use Date::Manip::TZ::etgmt00; use Date::Manip::TZ::amchic00; Date_Init("tz=america/chicago");
    Note the Date_Init() call at the end of that sequence which guarantees that my timezone alligns with the pulled in modules.

    Thank you for your help!