in reply to String concatenation

$string = $var1 . $var2 . $var3;

This is commonly used in Perl. It could be used during the print statements too.

$string = "${var1}${var2}${var3}"; $string = "$var1$var2$var3";

It is essentially the same thing. There is no difference between the two statements.You need to keep in mind that the following statement gives you a "string".

$string = join('', $var1,$var2,$var3);

Join is usually used when you need to convert an array to a string.