When the strings are small, it almost doesn't matter whether interpolation or a list is used. The concatenation technique is very similar to interpolation. The list technique is a little bit faster than interpolation. But when the strings are large, lists are significantly faster. We have seen this in the previous section and here is another benchmark to increase our confidence in our conclusion.
Concatenation is a little bit slower than interpolation.
This uses more memory and is slower than using a list. Concatenation is also potentially slow since Perl might create a temporary string which it then prints. Lists are fast because Perl can simply deal with each element in turn. This operation might be slower than direct append to the string whenever a new string springs into existance. Download Written by Stas Bekman .