![]() |
|
Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re^2: Five Ways to Reverse a String of Words (C#, Perl 5, Perl6, Ruby, Haskell)by akho (Hermit) |
on Aug 12, 2007 at 15:41 UTC ( #632072=note: print w/replies, xml ) | Need Help?? |
One may do this with a logarithmic number of concatenations, though (instead of linear). I don't see a feasible way to do such a thing with StringBuilder,
That may make concatenation faster than StringBuilder even in the case of a large number of strings. I wonder how Perl's join actually works.
In Section
Meditations
|
|