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) >
- Re: [OT] Re: [performance/ben... Matt Sergeant
- Re: [OT] Re: [performance/ben... Perrin Harkins
- Re: [OT] Re: [performance/ben... Mike Lambert
- Re: [OT] Re: [performance/ben... Matt Sergeant
- Re: [OT] Re: [performance/ben... Doug MacEachern
- Re: [performance/benchmark] printing technique... Matt Sergeant
- Re: [performance/benchmark] printing techn... Stas Bekman
- Re: [performance/benchmark] printing technique... Barrie Slaymaker
- Re: [performance/benchmark] printing techn... Eric Cholet
- Re: [performance/benchmark] printing t... Barrie Slaymaker
- Re: [performance/benchmark] printing techniques Jeff Norman
- Re: [performance/benchmark] printing techniques Stas Bekman
- Re: [performance/benchmark] printing technique... ___cliff rayman___
- Re: [performance/benchmark] printing techn... Stas Bekman
- Re: [performance/benchmark] printing t... Matt Sergeant
- Re: [performance/benchmark] print... Greg Cope
- Template techniques Matt Sergeant
- Re: Template techniques shane
- Re: Template techniques Matt Sergeant
- Re: Template techniques Chris Winters
- Re: Template techniques Bernhard Graf