EMAIL PROTECTED]
Subject: RE : Handlers vs Perl scripts
Could anyone explain me why having perl files like :
printf (" blahblahb");
printf ("My name is %s",$name);
Is a wrong idea? :-)
Steve Hemond
Programmeur Analyste / Analyst Programmer
Smurfit-Stone, Ressources Foresti
On 27 Jan 2004 at 15:45, Hemond, Steve wrote:
> Could anyone explain me why having perl files like :
>
> printf (" blahblahb");
> printf ("My name is %s",$name);
>
> Is a wrong idea? :-)
Because that's not all you will have. You will have
printf (" blahblahb");
printf ("My name is %s",$name);
On Tue, 2004-01-27 at 12:45, Hemond, Steve wrote:
> Could anyone explain me why having perl files like :
>
> printf (" blahblahb");
> printf ("My name is %s",$name);
>
> Is a wrong idea? :-)
For one, most HTML pages will probably contain more than one tag and
more than two lines of text. Take t
833
[EMAIL PROTECTED]
> -Original Message-
> From: David R. Baird [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, January 27, 2004 12:13 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Handlers vs Perl scripts
>
>
> Really, everything you are trying to do is made so much easier
Really, everything you are trying to do is made so much easier in
Mason. Have you tried the Mason list for help with your bugs?
Embedding html inside perl scripts is not the way to go - it'll
get very unwieldy very quickly.
If you put most of your functions into modules (eg for db
access), t
i use handlers!
usually with HTML::Template or XML::LibXML // XML::LibXSLT to handle the
content /layout pieces!
On Tue, 2004-01-27 at 10:40, Paul Simon wrote:
> --- "Hemond, Steve" <[EMAIL PROTECTED]> wrote:
> >
> > Instead of embedding perl code in html files to
> > generate stuff from a
> >
--- "Hemond, Steve" <[EMAIL PROTECTED]> wrote:
>
> Instead of embedding perl code in html files to
> generate stuff from a
> database, I would just have to write an entire perl
> file that will print
> the html code (like the example I've shown above)
> and do the
> manipulations on the database
Hi again!
After taking too much time at debugging my Mason bugs (unsuccessfully) ,
I decided to abandon the idea of embedding perl code in my web pages.
I will setup ONE handler that will only generate a header and a footer
on each webpage. I'm not at ease with the idea of having a bunch of
handl