Hi, I'm new here. I checked google and some of the archives for this list 
but I couldn't find any hints. Feel free to point me to a better resource 
if necessary.

I'm using Template::Extract to match this bit of HTML:

<DL>
<DT>
<DD><STRONG></STRONG>
<BR>J. Clin. Invest. 2004 113: 1.
<NOBR>
<A HREF="/cgi/content/full/113/1/1">[Full Text]</A>
<A HREF="/cgi/reprint/113/1/1">[PDF]</A>
&nbsp;</NOBR>
<P>
</DL>
<P>
<A NAME="BOOK_REVIEW"></A><H2><FONT COLOR=3A1269>Book Review:</FONT><A 
HREF="#top"><IMG WIDTH=12 HEIGHT=12 HSPACE=3 BORDER=0 ALT="" 
SRC="/icons/back.gif"></A></H2>
<DL>
<DT>
Samuel Klein
<DD><STRONG>Fat land: how Americans became the fattest people in the 
world</STRONG>
<BR>J. Clin. Invest. 2004 113: 2.
<NOBR>
<A HREF="/cgi/content/full/113/1/2">[Full Text]</A>
<A HREF="/cgi/reprint/113/1/2">[PDF]</A>
&nbsp;</NOBR>
<P>
</DL>


I'm using this template:

[% FOR rec %]
<DL>
<DT>[% titmkle %]
<DD>[% skvtuff %]
<P>
</DL>
[% END %]


And this is the output (Data::Dumper):

$VAR1 = {
          'rec' => [
                     {
                       'skvtuff' => '<STRONG></STRONG>
<BR>J. Clin. Invest. 2004 113: 1.
<NOBR>
<A HREF="/cgi/content/full/113/1/1">[Full Text]</A>
<A HREF="/cgi/reprint/113/1/1">[PDF]</A>
&nbsp;</NOBR>
',
                       'titmkle' => '
'
                     }
                   ]
        };


Using this code:
$x->extract($template,$data)

(all modulo wrapping by various mail clients)

Why do I get just one output record?


_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to