Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Perl CGI app to executable?

by wanna_code_perl (Pilgrim)
on May 20, 2009 at 00:21 UTC ( #765076=perlquestion: print w/replies, xml ) Need Help??
wanna_code_perl has asked for the wisdom of the Perl Monks concerning the following question:

Hello fellow monks,

Thanks to a fundamental requirement change, I want to make an existing CGI Perl application do something it was never designed for. (Or throw it away and start over, but I'm hoping that won't be the best course of action!)

This application is a single CGI script, plus about a dozen internal modules (and a few more from CPAN). From a black box perspective, it's basically a web form which is used to generate a data file. Nothing special, by any means.

The original requirement was that this would be used internally only, so it's currently on an internal web server. Now, (you guessed it), management wants to give it to a customer as an easily installable closed-source desktop application (Windows primarily, but cross-platform support would be even better.)

I see my options basically as follows:

  1. Rewrite the whole thing in Java. (Lot of work, but will meet the new requirement.)
  2. Rewrite the interface component in Perl/Tk (Much less work, but not sure how successful I'll be at compiling it and putting it into an easily installable package. Having customers install ActiveState Perl would be a very, very tough sell. It needs to be one installer (or, better yet, a single executable).)
  3. Keep the application as-is, but somehow package that into a single executable. (Compiled separately for Win/Mac/Linux of course). This is potentially the least amount of work, but I'm not aware of any reasonable way to do this, without requiring customers run a web server(!) on their desktops.

Am I missing something? How would you go about this?

Replies are listed 'Best First'.
Re: Perl CGI app to executable?
by trwww (Priest) on May 20, 2009 at 03:36 UTC
      This is great info. I believe the combination of HTTP::Server::Simple and PAR::Packager or the AS PDK will probably do the trick. Thanks!
Re: Perl CGI app to executable?
by Anonymous Monk on May 20, 2009 at 03:33 UTC
    search for "CAVA PACKAGER"
Re: Perl CGI app to executable?
by hominid (Curate) on May 20, 2009 at 12:11 UTC
    Another nod to Cava Packager here. I encourage you to check it out.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://765076]
Approved by ww
vrk takes a cookie from the platter on the sideboard.
Eily thinks vrk is a cookie monster
talexb thinks the term 'cookie monster' is unnecessarily drogatory ;) and takes a cookie as well. Mmmm. Delicious cookies.
[davido]: A tool as pretentious as Test::Perl::Critic ought not fail to install because one of its dependencies failed to pull in List::MoreUtils.
[davido]: ...and

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (13)
As of 2017-04-25 15:58 GMT
Find Nodes?
    Voting Booth?
    I'm a fool:

    Results (458 votes). Check out past polls.