LPM: Problems with text::template
David Pitts
dpitts at mk.net
Wed Jun 21 20:50:55 CDT 2000
So are you suggesting that my template should look more like this:
<!-- Begin News Text -->
Get news here: {$news=&getnews;print $news;''}
</td>
<!-- End News Text -->
Thanks,
David
David Pitts
President, Pitts Technical Resources, Inc
(859) 552-3262
www.dpitts.com
dpitts at mk.net
----- Original Message -----
From: "David Hempy" <hempy at ket.org>
To: <lexington-pm-list at happyfunball.pm.org>
Sent: Wednesday, June 21, 2000 9:41 PM
Subject: Re: LPM: Problems with text::template
> At 09:23 PM 6/21/2000 -0400, you wrote:
> >Okay, I am playing with text::template for the first time - thanks to
> >Rich's discussion on it. I have a template that includes some perl...
> >something like this:
> >
> ><!-- Begin News Text -->
> >Get news here: {&getnews;''}
> ></td>
> >
> >The {$variable} does fine. The problem is with the lines like:
> >
> >Get news here: {&getnews;''}
> >What it is doing is it is taking any subroutine results and displaying
> >them (returning them) first, and then is giving my template....
> >
>
>
> Your subroutine should return the text, not print it.
>
> -dave
>
>
>
> --
> David Hempy
> Internet Database Administrator
> Kentucky Educational Television
> <hempy at ket.org> -- (606)258-7164 -- (800)333-9764
>
>
>
More information about the Lexington-pm
mailing list