in reply to How to embed Perl in HTML
<!--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 | |
by exilepanda (Friar) on Oct 11, 2011 at 12:00 UTC |