Beefy Boxes and Bandwidth Generously Provided by pair Networks Joe
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: Why behaviour changes after converting to exe

by syphilis (Archbishop)
on Jul 31, 2006 at 03:35 UTC ( [id://564700]=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: Why behaviour changes after converting to exe
in thread Why behaviour changes after converting to exe

pp -M DateTime::Locale -o script.exe script.pl

That doesn't work for me ... close, but not quite. I found I had to specifically load DateTime::Locale::en_US:
pp -M DateTime::Locale::en_US -o script.exe script.pl
Cheers,
Rob

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

    That worked fine for me.Thanks a lot.But I am assigning some values to that by creating an object,see the code below,
    #!/bin/perl-w use DateTime; 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";
    When I run the above code by using .pl file it is working.But when i convert it to exe by using pp -M DateTime::Locale::en_US -o perdate.exe perdate.pl it is not working and showing the meesage,
    C:\Perl\bin>perdate.exe The timezone 'Indian/Christmas' could not be loaded, or is an invalid +name.
    But that timezone is already found and working fine for .pl file.Could you suggest why?? and help me to solve this.
        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.
      Perhaps you should actually read the pp documentation.

      Martin
      pp -M DateTime::Locale::en_US -o perdate.exe perdate.pl

      Did you work it out from the advice provided by gellyfish:
      pp -M DateTime::Locale::en_US -M DateTime::TimeZone::Indian::Christmas -o perdate.exe perdate.pl

      Cheers,
      Rob

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://564700]
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.