On Monday, Nov 10, 2003, at 14:54 US/Pacific, herve.suvigny wrote: [..]
To morrow I am going to do this way and I have another idea ,

        While in first
        first stuff
        second stuff
[..]

a strategy that I use is to 'build up' the page in the form

$info .= some_function_stuff(@arglist);

This way I can cache most of the 'header' section and
things like details about the '<body>' and/or CSS stuff
in a module for that project.

my $page = make_page($page_type,$info);

so if somewhere along the line I had a problem that would
have caused a 'die' in some module, or data was incorrect
I would be able to

        return(generic_error_page($error_message))
                if ( $went_wrong_here );

this way I can sort out what is going on in smaller chunks
of code that build up modules...


ciao drieux

---


-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to