Q&A > strings > How do I insert, (not overwrite) into a string? contributed by KM
Shendal: $_ .= "H".$_
Benchmark: timing 100000 iterations of KM, Ovid, Shendal, turnstep...
KM: -1 wallclock secs ( 0.55 usr + 0.00 sys = 0.55 CPU)
Ovid: 2 wallclock secs ( 2.20 usr + 0.00 sys = 2.20 CPU)
Shendal: 0 wallclock secs ( 0.53 usr + 0.00 sys = 0.53 CPU)
turnstep: 1 wallclock secs ( 0.98 usr + 0.00 sys = 0.98 CPU)
By rote learning.
Via Genetic memory.
It's provided by my firmware.
I just remember them.
Thirty days hath September
My computer gets it right, usually.
I just ask someone else.
Someone punches me on the first of the month.
Results (57 votes),