Hi Rick,

Please use Text::Template for generating the html you send to the client.
As long as you keep appending the html string to $OUT, it should work
under mod_perl2.0.


http://search.cpan.org/~mjd/Text-Template-1.44/lib/Text/Template.pm

Thanks,

Manoj.

On 8/21/07, RGKärcher <[EMAIL PROTECTED]> wrote:
> Hi guys ,
>
> Thanks Michael and Georg but none of the examples
> works   for me ...
>
> I'm using Apache::Asp .
>
> What could be the problem ?
>
> Thanks in Advance
>
> Rick
>
> --- Michael Peters <[EMAIL PROTECTED]> escribió:
>
> > Georg Grabler wrote:
> > > On Tuesday 21 August 2007 15:48:23 RGKärcher
> > wrote:
> > >> print " <p><a href=\"http://www.mysite.net/\";>
> > <img
> > >> src=\"site_images/$image \"  width=\"160\"
> > >> height=\"180\" alt=\"image \"
> > class=\"float-left\"
> > >> /></a>\n";
> > >
> > > Perl is just a bit differnt. Either, use ${image}
> > instead of $image or use
> > > sprintf.
> >
> > You can use both of those, but you don't really need
> > to. The above should work
> > just fine. But don't all those escapes of the double
> > quotes give you a headache?
> > There are so many better ways of doing that:
> >
> > print qq|<p><a href="http://www.mysite.net/";>
> >   <img src="site_images/$image" width="160"
> > height="180" alt="image"
> >     class="float-left" />
> >   </a></p>
> > |;
> >
> > Having said that, when working with HTML you should
> > really be using templates. I
> > like Template Toolkit
> > (http://search.cpan.org/perldoc?Template) and also
> > use
> > HTML::Template
> > (http://search.cpan.org/perldoc?HTML::Template) but
> > if you're
> > coming from PHP then Mason might be more up your
> > alley
> > (http://search.cpan.org/perldoc?HTML::Mason)
> >
> > --
> > Michael Peters
> > Developer
> > Plus Three, LP
> >
> >
>
>
> Ricardo german Kärcher
>
> [EMAIL PROTECTED]
> [EMAIL PROTECTED]
> [EMAIL PROTECTED]
>
>
>       
> ____________________________________________________________________________________
> ¡Sé un mejor fotógrafo!
> Perfeccioná tu técnica y encontrá las mejores fotos. Visitá 
> http://ar.yahoo.com/promos/mejorfotografo.html
>

Reply via email to