On Tue, 2 Nov 2004, supriya devburman wrote: > I am new to perl, [I] know little bit of PHP, so > can [you] [please] tell me can we embed perl and html like > which we can do in php[question-mark] And if not how to design page > dynamically using html and perl[question-mark] because as [I] had > observed in books we can not write perl and html on [a] > single page.
What you're looking for is a templating framework. Perl offers several. Embperl <http://perl.apache.org/embperl> was already cited as one example, but there are others, including: * HTML::Template <http://html-template.sourceforge.net/> Pretty simple; nicely separates program logic from templates (which a good thing and something that PHP almost completely fails to do -- which may rule HTML::Template out for you..) * Template Toolkit <http://template-toolkit.org/> Extremely flexible, and yet not that hard to learn. * Mason <http://www.masonhq.com/> Mixes your Perl in with your templates, and so is probably the closest these frameworks get to what PHP does. There are others, but these are the most commonly used ones. -- Chris Devers -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>
