$my_name = "john doe";
$dogs_name = 'spot';
$sons_name = "$my_name".' the second'; # john doe the second
$temp = 'the third';
$grandsons_name = "$my_name"." $temp"; # john doe the third
| Operator | Operation | Example |
| . | Concatenate | $s = "Hello" . " " . "World"; |
| .= | Concatenate-Equals | $s .= "!"; |
| x | Replicate | $s = ":^)" x 32; |
| x= | Replicate-Equals | $s x= 32; |
if ( $name eq 'john doe' and $name ne 'john doe the second' ) { #do something }