Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^2: Using Excel timestamp with perl

by Varkh (Initiate)
on Jun 03, 2014 at 12:36 UTC ( [id://1088409]=note: print w/replies, xml ) Need Help??


in reply to Re: Using Excel timestamp with perl
in thread Using Excel timestamp with perl

Thank you for the fast reply.

Unfortunately, we really can't install any modules, as it is a script that must work for different clients that doesn't want any change on their servers (and I mean, ANY change ... :( ).

I will try this and will keep you updated !

Thanks,

Varkh.

Replies are listed 'Best First'.
Re^3: Using Excel timestamp with perl
by dasgar (Priest) on Jun 03, 2014 at 22:47 UTC

    Here's a couple of ideas about how to use additional modules without "installing" them on the clients' systems.

    If you need to keep the script as Perl script (i.e. distribute as a .pl file to be run the interpreter), you can use App::FatPacker to pack in all of the needed modules into one big script.

    If you install PAR::Packer, you can use the pp utility to create a stand-alone executable that you could distribute to clients. In this case, the clients would not even need to install Perl on their systems. There are other packager utilities that you could use too (CavaPackager, Perl2Exe, PerlApp from ActiveState's Perl Development Kit or Pro Studio). (Some of these are free and others you will need to purchase).

      Wow. I'm getting more and more amazed by the possibilities of Perl. I will look after these fine advices and try to use a standalone version of a module. That should do the trick too !

      Thanks,

      Varkh

Re^3: Using Excel timestamp with perl
by soonix (Canon) on Jun 03, 2014 at 13:09 UTC
    clients that doesn't want any change on their servers (and I mean, ANY change ...
    ... including your script????

      Fortunately, my script is the only thing they will accept, as long as it doesn't do anything more than writing on a few files and send some emails !

Re^3: Using Excel timestamp with perl
by crusty_collins (Friar) on Jun 03, 2014 at 20:42 UTC
    You can load modules to an external directory and just reference that dir on startup.
    #!/usr/bin/perl use strict; use warnings; push(@INC, "/jet/prod/include"); use MyPersonalModule; #code here

      That is wrong, it does not work. You want use lib "/jet/prod/include"; instead so that the modification to @INC happens at compile time.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1088409]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2024-04-20 01:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found