Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Perl CGI app to executable?

by trwww (Priest)
on May 20, 2009 at 03:36 UTC ( [id://765098]=note: print w/replies, xml ) Need Help??


in reply to Perl CGI app to executable?

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.

It sounds like you have your app factored pretty well, so this is probably easier than you think.

I would use HTTP::Server::Simple to build out the web server portion, and then write bootstrap scripts to tell the local machine's browser to connect to the locally running server.

After you get that working, use PAR::Packer to complile the app in to a single executable.

As an alternative to PAR::Packer, ActiveState has the Perl Dev Kit which helps you build distributable applications. For example you can write .msi files in perl.

If you dig a little bit you'll find lots of ways to do what you want in perl.

UPDATE: If at all possbile, my recommendation is to really push for running the app on a central server.

regards,

Replies are listed 'Best First'.
Re^2: Perl CGI app to executable?
by wanna_code_perl (Friar) on May 20, 2009 at 17:04 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!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2024-03-28 14:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found