On Wed, 27 Dec 2000, Gunther Birznieks wrote:
> I don't completely understand the purpose of this benchmark.
>
> Are you testing string operations or print operations? Currently it seems
> as if the two are being tested together which doesn't necessarily provide
> the most meaning in the result.
On Fri, 29 Dec 2000, Alexander Farber (EED) wrote:
> Why? With <
Hello,
DC>(my $text =<<'foo') =~ s/^\s+://mg;
DC>:Hello, World!
DC>: http://foo.org/">I am an indented link.
DC>: So am http://bar.org/">I.
DC>foo
DC>print $text;
This, and other methods (without the beginning colon, for example) are
discussed in rec
How about this:
### Code:
(my $text =<<'foo') =~ s/^\s+://mg;
:Hello, World!
: http://foo.org/">I am an indented link.
: So am http://bar.org/">I.
foo
print $text;
### Output:
Hello, World!
http://foo.org/">I am an indented link.
So am http:/
Ron Beck wrote:
>
> Since when???
>
> I've always done...
> print<<"end_o_doc";
>
...
> Problems with this???
> Ron
I mean indenting code, not data.
> "Alexander Farber (EED)" wrote:
> > Why? With < >
> > my @text = (
> > "\n",
> > "\n",
> > " \n",
> > "\n",
> > "
Since when???
I've always done...
print<<"end_o_doc";
Individual Requesting the Service:
(Person filling out this form)
Requestor's Name
Requestor's Employee #
Requestor's Phone
Requestor's E-mail Address
Perrin Harkins wrote:
> I know it's not the point, but I'd consider it poor style if I saw someone
> using anything other than a <\n",
"\n",
" \n",
"\n",
" Test page\n",
I know it's not the point, but I'd consider it poor style if I saw someone
using anything other than a <
I don't completely understand the purpose of this benchmark.
Are you testing string operations or print operations? Currently it seems
as if the two are being tested together which doesn't necessarily provide
the most meaning in the result.
For example, is it the string concatenation that is s
On Tue, 26 Dec 2000, Stas Bekman wrote:
> Your comments are welcome.
your benchmark shows that it is really hard to screw up so much that
it actually matters and that there *always* will be somewhere else in
the application where there's more performance to be won.
:-)
- ask
--
ask bjoern
Something like half a year ago I've posted a benchmark of different
printing techniques. Only now I've absorbed all the comments and here
is a new benchmark based on these comments.
use Benchmark;
use Symbol;
my $fh = gensym;
open $fh, ">/dev/null" or die;
my @text = (
"\n",
11 matches
Mail list logo