Welcome to the Monastery | |
PerlMonks |
Re^2: String concatenation (join++)by thekostya (Initiate) |
on Mar 16, 2016 at 09:47 UTC ( [id://1157923]=note: print w/replies, xml ) | Need Help?? |
You forgot one more method of concatenation via substr.
This concatenation is faster for very long strings. For string size 10 - 100 symbols fastest way is $a . $b and join For string size ~1 Mb fastest ways join, substr and $a.$b For strings size ~1Gb :) fastest ways are substr, strange method "@{[$a, $b]}" :) and join Join has good speed for all variants.
In Section
Seekers of Perl Wisdom
|
|