Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Perl - web interface

by sathishperl (Novice)
on Nov 11, 2010 at 17:40 UTC ( #870895=perlquestion: print w/ replies, xml ) Need Help??
sathishperl has asked for the wisdom of the Perl Monks concerning the following question:

I have an perl application(handling multiple user's thread) which is running on CLI(command line interface) mode. Now my customer wants us to make the same application using web interface. Please suggest how to proceed further!

Comment on Perl - web interface
Replies are listed 'Best First'.
Re: Perl - web interface
by Tanktalus (Canon) on Nov 11, 2010 at 17:54 UTC

    "handling multiple user's thread" doesn't make any sense to me, but that's irrelevant. If you have no experience writing web interfaces, try subcontracting. Someone who knows what they're doing can, in any language, provide a web interface to your CLI, and call your CLI to do the real work.

    IMO, that's how all good GUI's (whether web-based or not) should work: provide a pretty interface to a CLI that does the real work behind the scenes, allowing power users to skip the GUI and run things non-interactively as needed.

Re: Perl - web interface
by sundialsvc4 (Abbot) on Nov 11, 2010 at 19:23 UTC

    A “web application” is, for all intents and purposes, a new application, and should be approached in that manner.

    The exact approach will wholly depend on what sort of application it is.   You might be able to build a web application that invokes the existing application – or, more likely, that sends a request from the web-server to some other “application server” to do so.

    It is very reasonable to presume that suitable frameworks already exist within Perl/CPAN to do most of these steps.   There are CGI handlers, batch processing schedulers and parallel fork-managers, robust and reliable queues, and so on.

    The most serious issue that you are likely to run into, is the bugaboo of all web applications:   maintaining state.   Hence the thought that, perhaps, the process which actually runs your application might not be the web-server proper.

Re: Perl - web interface
by choroba (Chancellor) on Nov 11, 2010 at 17:44 UTC
    Check CPAN for CGI or similar.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://870895]
Approved by Tanktalus
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2016-05-01 00:44 GMT
Find Nodes?
    Voting Booth?
    :nehw tseb si esrever ni gnitirW

    Results (441 votes). Check out past polls.