Peter Schoenster wrote:
> Yeah, well as I said it is just as easy to just call a script rather
> than pretend it's an html file. When I work with designers I tell
> them to give me what they want before, and after, and create the html
> to handle errors. I then glue it all together. BTW, perl has a
> feature (which oddly many people ignore) called the here_doc:
>
> print  <<END;
> put anything here
> or here, and insert a $variable or so
> END
>
> or even better, I use this:
>
> print qq|
> and print
> what every I
> want with variables and all
> |;
>
> It thus can be made very simple to go back and change html.  I have
> seen many scripts which are just a complete mess.

Yes. It amazes me how many scripts use print far more than they need to. I
use

print qq(
        html and perl variables go here
);

all the time. It makes it far easier to see the html at a glance.

As far as embedding perl in html, rather than the other way around, there is
ePerl:

http://www.engelschall.com/sw/eperl/

this site also links to other, similar, software products. Nice thing about
ePerl is that it uses the version of Perl that you have installed, syntax
and all.

Jack

____________________________________________________________________
--------------------------------------------------------------------
 Join The Web Consultants Association :  Register on our web site Now
Web Consultants Web Site : http://just4u.com/webconsultants
If you lose the instructions All subscription/unsubscribing can be done
directly from our website for all our lists.
---------------------------------------------------------------------

Reply via email to