Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: How to embed Perl in HTML

by exilepanda (Friar)
on Oct 09, 2011 at 06:55 UTC ( [id://930430]=note: print w/replies, xml ) Need Help??


in reply to How to embed Perl in HTML

Don't understand your question...
If you mean quote this source code in your HTML, you can write
<!--index.html--> some header lines.... <code> you Perl source script... </ code> <-- no space between / and code

Also, Perl cannot embed to run in HTML (not the PHP style). You will embed HTML in Perl, and Perl prints the output.

If you try to perform the interaction like your console script does in the web way. You will need some study on Perl CGI(google CGI programming with perl). You will need to write <form> to create your input area, and use CGI; to retrieve the data, prints the output

Replies are listed 'Best First'.
Re^2: How to embed Perl in HTML
by metaperl (Curate) on Oct 11, 2011 at 11:08 UTC
      O! yes, I admit it there's some point I missed. My aspect is referring to the pure HTML nature only. But I forget if you are using Apache(or it's derive products), so you can do the hack easily.

      Good luck my friend! =)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2024-04-19 04:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found