in reply to Re^2: Display perl code output in CGI script
in thread Display perl code output in CGI script

Instead of taking screenshots I actually want the window of Progress_bar.pl to run.

Um, whose screenshots do you think you'll be taking?

The Progress_bar.pl will run on the server, and main.pl will be taking screenshots of Progress_bar.pl

Progress_bar.pl doesn't run in the browser, or the browsers computer (client), it runs on the same computer main.pl runs, it runs on the server

If you want the browser computer (client) to run a program, they'll need to have perl installed, and browser configured to execute any perl programs downloaded ... or browser configured to execute any .exe files downloaded, and you send them a PAR::Packer/pp-packed perl program (or using perlapp or perl2exe...)

See the above links I provided, watch the video, read the tutorials, learn how the internet works :)

  • Comment on Re^3: Display perl code output in CGI script

Replies are listed 'Best First'.
Re^4: Display perl code output in CGI script
by asha_mail (Novice) on Dec 21, 2011 at 09:32 UTC

    Then how can integrate functionalities of PERL function in main.pl. How can I create an interactive GUI using perl and use it in main.pl?

      Tk is a GUI toolkit, not a web based framework. My suggestion is that you have one script (main.pl for argument sake) which displays your user interface (learn about HTML/CSS/JavaScript). I'd advise against embedding the HTML etc within your perl script. Consider using HTML::Template (or Template::Toolkit).

      Your example Tk program doesn't do much. You could easily replace it with an HTML user interface using advice in links you've already been given.

      Then how can integrate functionalities of PERL function in main.pl.

      Are you talking about Calculus?

      How can I create an interactive GUI using perl and use it in main.pl?

      What does interactive GUI mean to you? what will it do ?

        I believe they mean how can they use Perl while providing a web based user interface which is capable of animation, and so on.