[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

RE: [FWP] appending to two strings



John Porter said:
: You're both wrong. 
: The string interpolation is slower than the dot.
: In fact, I believe string interpolation is actually 
: *implemented* in terms
: of dot.

Yes, of course you're right. After realizing my error 
(unfortunately just after hitting "send"), I worked up a 'use 
Benchmark' script to demonstrate it. Bottom line: all of the 
one-liners are significantly slower than the original two 
line '.=' appender, no matter what concatenation method is 
used. (String interpolation is definately the slowest, tho.) 
I had it all worked up but then decided that benchmarking 
really isn't very fun (nor is publicly calling attention to 
your own mistakes). :-)

"A fool uttereth all his mind: but a wise man keepeth it in 
till afterwards." ---Proverbs 29:11 (KJV)

Later,
________________________
Eli Evans
Text Preparation Manager
Libronix Corp.
mailto:eli@libronix.com
http://www.libronix.com
Ec 12:12; Jn 21:22


==== Want to unsubscribe from Fun With Perl?  Well, if you insist...
==== Send email to <fwp-request@technofile.org> with message _body_
====   unsubscribe