in reply to which is faster, interpolation or concatenation?
in the end it's the same and it's only important to worry about interpolation wehnever you don't need it and should get rid of double quotes. But (imho) it's Premature optimization to care about this issue too much. It saves you 4 keystrokes to use double qoutes here and it's still readable, so use them.
I've just benchmarked $y = 'a '.$x.' b' and $y = "a $x b": with perl 5.6.1 the operator method was (a bit) faster, with 5.8.0 the doublequotes were faster. It is not usefull to worry anyways.
--
|
|---|