http://www.perlmonks.org?node_id=964612


in reply to String concatenation

What is it these days with all these micro-optimization posts?

Whatever you use, it probably won't make any significant difference, because even the slowest of the lot will most probably be much faster still than the rest of your code.

And you can always test using Benchmark.

Replies are listed 'Best First'.
Re^2: String concatenation
by mailmeakhila (Sexton) on Apr 11, 2012 at 20:18 UTC
    I would prefer the first method.