in reply to Problem using HTML::Template.
or$Template->param(Results => "<p>Results: $shtuff<\/p>");
you are using it wrong. To correct the first example, only pass a variable (such as the less offensive $shtuff scalar) and do not pass any HTML - the template should contain the markup, not the script. To correct the second example, place everything in the heredoc into a template file.print <<HTMLSTUFF; <html> <head> <title>No file</title> ...
Also, this:
is very non-portable. You specify a full path to the file instead of using dot dot.my $Template = HTML::Template->new( filename => '../Template/Search_Engine.tmpl' );
Please read HTML::Template Tutorial - it will take you less time to read it then it took me to write it, and you will be better off after having worked through the examples it presents.
Last note, this:
Is a non-portable hack that can be improved by reading A Guide to Installing Modules, specifically this section.#The secret ingredient! use lib "../lib"; use HTML::Template;
jeffa
L-LL-L--L-LL-L--L-LL-L-- -R--R-RR-R--R-RR-R--R-RR B--B--B--B--B--B--B--B-- H---H---H---H---H---H--- (the triplet paradiddle with high-hat)
|
|---|