On Sun, 20 May 2001, Stas Bekman wrote:

[...]
> it's also about smart construction of HTML code using map() and similar
> constructs:
> 
[...]
>
>   print table(-align => 'center',
>               tr( map { td($_),td($rows{$_} } keys %rows )
>              );
> now try to write the same code using HERE construct... you get the idea...

eh, not really.

Without testing or really knowing what the CGI.pm functions does I
would think that it's approximately the same as:

print "<table>",map({"<tr><td>.$_.</td><td>.$rows{$_}</td></tr>\n" } keys 
%rows),"</table>";

Mixing HTML and code is ugly no matter how you do it.


For "automatic formhandling" I've very good experiences with
HTML::Embperl. It's magic is truly a blessing when you can use it.


 - ask

-- 
ask bjoern hansen, http://ask.netcetera.dk/   !try; do();
more than 100M impressions per day, http://valueclick.com

Reply via email to