Beefy Boxes and Bandwidth Generously Provided by pair Networks vroom
Do you know where your variables are?
 
PerlMonks  

Re^4: Why behaviour changes after converting to exe

by gellyfish (Monsignor)
on Jul 31, 2006 at 05:14 UTC ( [id://564719]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Re^3: Why behaviour changes after converting to exe
in thread Why behaviour changes after converting to exe

Because you need to preload the appropriate DateTime::TimeZone in the same way as you did for the DateTime::Locale.

/J\

  • Comment on Re^4: Why behaviour changes after converting to exe

Replies are listed 'Best First'.
Re^5: Why behaviour changes after converting to exe
by madtoperl (Hermit) on Jul 31, 2006 at 05:51 UTC
    Hi gellyfish,

    I tried by preload the DateTime::Zone module as like DateTime::Locale and also read the PP Documentation,But it is giving the same error,as it given previously.

    How can i include two moudles here when converting to exe,because the below syntax goes wrong
    pp -M DateTime::Locale::en_US -M DateTime::TimeZone -o perdate.exe per +date.pl
    Could you helpout for me.

      But you are not preloading DateTime::Locale are you? You are loading the subclass DateTime::Locale::en_US, so similarly you need to load the appopriate subclass (or subclasses) of DateTime::TimeZone that represents the timezone(s) that you will want to use in your program.

      The reason that these modules are not detected as dependencies and loaded automatically is that they are being loaded by DateTime dynamically at run time, based on the environment or the arguments you pass to the DateTime constructor.

      /J\

        Hi gellyfish,

        I have pre-loaded the code as you said perviously,But it is giving the same error,see the code below,
        use DateTime; use DateTime::TimeZone; use DateTime::Locale; my $loc = DateTime::Locale->load('en_US'); my $runtime = DateTime->new( year => 2006, month => 07, day => 31, hour => 9, minute => 54, #time_zone => "America/Los_Angeles", time_zone => "Indian/Christmas", ); print"Runtime=> $runtime\n";
        Suggest me how i can solve this issue?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://564719]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.