asha_mail has asked for the wisdom of the Perl Monks concerning the following question:

Hi, I want my perl program to run from web browser in Ubuntu. How can we integrate HTML5 with perl?

Replies are listed 'Best First'.
Re: Accessing perl script through browser
by CountZero (Bishop) on Dec 18, 2011 at 08:33 UTC
    Perl scripts do not run from your browser: your browser contacts a webserver and the server runs the (perl)script. Is that what you want to do?

    All HTML (any version) is just text which your script (running inside the server) sends out on STDOUT. As Perl is very good in manipulating text, it is best suited to do this.

    CountZero

    A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

Re: Accessing perl script through browser
by Corion (Patriarch) on Dec 18, 2011 at 08:26 UTC
Re: Accessing perl script through browser
by TJPride (Pilgrim) on Dec 18, 2011 at 21:45 UTC
    If you want your code (or at least the CPU-intensive bits) to run browser-side, you should probably learn Javascript, and depending on what you're doing, maybe some other things such as manipulating SVG.
Re: Accessing perl script through browser
by Anonymous Monk on Dec 20, 2011 at 08:33 UTC