Source of template.plp
Back
  1. <(template.plp)>
  2. <: BEGIN { $title = 'Tutorial'; } :>
  3. <: title "Tutorial" :>
  4. Assuming that you already know some Perl, it's easy to start using PLP:<br>
  5. Once you have installed PLP, create an HTML page, and put Perl code in it somewhere. Put the Perl code in like this: &lt;: perl code here :&gt;.<br>
  6. That's all!<br>End of tutorial.<br><br>
  7. <: code q{
  8. &lt;body&gt;<br>
  9. &nbsp; &lt;font color=red&gt;<br>
  10. &nbsp; &nbsp; &lt;:<br>
  11. &nbsp; &nbsp; &nbsp; print "Hello World!&lt;br&gt;";<br>
  12. &nbsp; &nbsp; &nbsp; print join ':', 1..10;<br>
  13. &nbsp; &nbsp; &nbsp; etcetera();<Br>
  14. &nbsp; &nbsp; :&gt;<br>
  15. &nbsp; &lt;/font&gt;<Br>
  16. &lt;/body&gt;
  17. } :>