Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Why behaviour changes after converting to exe

by reneeb (Chaplain)
on Jul 31, 2006 at 07:28 UTC ( #564699=note: print w/replies, xml ) Need Help??


in reply to Why behaviour changes after converting to exe

the en_US.pm file is part of the DateTime::Locale distribution. Try to add the module to the PAR archive manually:

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

Replies are listed 'Best First'.
Re^2: Why behaviour changes after converting to exe
by syphilis (Chancellor) on Jul 31, 2006 at 07:35 UTC
    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
      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.
        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
        Perhaps you should actually read the pp documentation.

        Martin
Re^2: Why behaviour changes after converting to exe
by madtoperl (Pilgrim) on Jul 31, 2006 at 07:39 UTC
    Hi reneeb,

    Thanks for your try.But again the converted exe is giving the same error.Any other suggestion please.

    Thanks.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://564699]
help
Chatterbox?
[Corion]: Once more, I'm looking for a sane client-side framework, but I guess these don't exist. Everything I look at either uses a weirdo home-grown templating language (like Angular in all its incarnations) or uses weirdo Javascript incarnations (like ...
[Corion]: ... Inferno.js, which uses ES2015) or uses some horrible amount of Javascript infrastructure before you can even render a single file.
[Corion]: I'd really like to create a dynamic frontend for my Google Keep clone, but so far, all the templating solutions seem to bring their own template language or require me to hand-code everything in (their own flavour of) Javascript. I'd like something ...
[Corion]: ... that can use templates from the HTML (via <script language="text/ template">... my template ...</script> and otherwise gets out of my way. But it seems that is not how the Javascript world is, currently :-/
[Corion]: I guess my question is, has anybody worked with React, Ember, Angular (v2, v4, v.whatever) or any other JS client-side dynamic rendering/virtual DOM thingie and found a simple, single-file solution like jQuery?

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (12)
As of 2017-03-27 19:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (321 votes). Check out past polls.