On 27 Jan 2004 at 15:45, Hemond, Steve wrote:

> Could anyone explain me why having perl files like :
> 
> printf ("<HTML> blahblahb");
> printf ("My name is %s",$name);
> 
> Is a wrong idea? :-)

Because that's not all you will have. You will have 

printf ("<HTML> blahblahb");
printf ("My name is %s",$name);

+ 763 more printf statements. With scattered logic added among 
those printf statements. And a major nightmare when you want to 
change the look of the site. And just how do you find the source 
of that obscure HTML error that you just discovered in IE 5.0? 
And when you fix that html bug - you'll need to restart the 
server to load the new version of your handler. 

Presentation and logic are two different things, and the more you 
can keep them apart, the easier your life will be. 

d.


-- 
Dr. David R. Baird
ZeroFive Web Design
[EMAIL PROTECTED]
http://www.zerofive.co.uk

-- 
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

Reply via email to