On Friday, April 12, 2002, at 10:05 , Nikola Janceski wrote:
> And why can't you do the same with the CGI module?
> $page_o_html = hidden(-name => 'crap', -value => $crap);
> would be the same thing.
>
> You lost me on that...
Mea Kulpa...
essential it's the case of
s/print/$page_o_html .=/
and then have a single print at the end....
[..]
so much of the documentation about using CGI seems to be of the form
print ,,,,
print......
and I feel safer with say
print $page_o_html ;
with only one 'print' event - I still have the old fear of
"I/O" costs....
hence we started with the boring definition
my $page_o_html = '';
and go through the steps of building it up
$page_o_html .= header;
....
$page_o_html .= hidden(-name => 'crap', -value => $crap);
....
$page_o_html .= end_html;
This way I can add 'subs' where appropriate, do the name space
isolation.... and I do not have to worry about the fact that
somewhere around line X we started a print....
But this may be the luxury of not being specifically obliged
to maintain code that was not started this way.... I stole this
trick from some CGI stuff from '99 (????) and just thought it made much
better sense.
Not sure I agree with you about building tables by hand.... But
I am sure your experience offers you the case work to recommend it
as the simpler to maintain...
ciao
drieux
---
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]