Home > Archive > PERL CGI Beginners > May 2004 > Print statement
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| Werner Otto 2004-05-22, 11:32 am |
| Hi,
Is there any way in which I can tell perl where to print my data. i.e.
Here is my .html
-----------------------------------
Header
-----------------------------------
Body header in orig. place
-----------------------------------
if ($var == 1)
{
bod_head = "New Header - Override current body header";
}
else
{
bod_head = "Body header in orig. place";
}
--
Kind Regards,
Werner Otto
| |
| Wiggins D Anconia 2004-05-22, 11:32 am |
| > Hi,
>
> Is there any way in which I can tell perl where to print my data. i.e.
>
> Here is my .html
That doesn't look like HTML to me? I am thoroughly , can you
provide better information about the issue?
As a hunch you might want to check out one of the various template kits,
Template-Toolkit is a well respected one it seems,
http://search.cpan.org/~abw/Template-Toolkit-2.13/
> -----------------------------------
>
> Header
> -----------------------------------
> Body header in orig. place
>
>
> -----------------------------------
>
> if ($var == 1)
> {
> bod_head = "New Header - Override current body header";
> }
> else
> {
> bod_head = "Body header in orig. place";
> }
>
bod_head needs a sigil.
http://danconia.org
|
|
|
|
|