Check out these modules. All 3 are excellent.:
How you would use Template Toolkit:
Create a template 'my_template.tmpl':
<html> ... <body> Hello [% name %], how are you today </body> </html>
Your perl code:
#!/usr/bin/perl -w use strict; use Template; my $file = 'my_template.tmpl'; my $vars = { name => "Schmidy" }; my $template = Template->new(); $template->process($file, $vars) || die "Template process failed: ", $template->error(), "\n";
You get to seperate your presentation from your code. No more digging through html in your perl code.
grep
| Mynd you, mønk bites Kan be pretti nasti... |
In reply to Re: Re: Re: Inserting a Value
by grep
in thread Inserting a Value
by lisaw
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |