Frequently, it's hard to build up an entire output segment without
code in-between the different additions to the output.  I guess you could
call this the "append, append, append... output" technique.

I think it would be an interesting addition to the benchmark:

   sub gather_print{
     my $buffer = '';
     $buffer .= "<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML//EN\">";
     $buffer .= "<HTML>";     
     $buffer .= "  <HEAD>";   
     $buffer .= "    <TITLE>";
     $buffer .= "      Test page";
     $buffer .= "    </TITLE>";
     $buffer .= "  </HEAD>";
     $buffer .= "  <BODY BGCOLOR=\"black\" TEXT=\"white\">";
     $buffer .= "    <H1> ";
     $buffer .= "      Test page ";
     $buffer .= "    </H1>";
     $buffer .= "    <A HREF=\"foo.html\">foo</A>";
     $buffer .= "    <HR>"; 
     $buffer .= "  </BODY>";
     $buffer .= "</HTML>";
     print $fh $buffer;
   }



On Wed, 7 Jun 2000, Stas Bekman wrote:

> Following Tim's comments here is the new benchmark. (I'll address the
> buffering issue in another post)
> 

Reply via email to