Strings in Perl can be concatenated using the period .
, which is an operator we can use to combine two or more strings.
string1.string2.string3.stringN
string1
, string2
, string3
,...,stringN
: These are strings we want to join/concatenate.
A new string is returned which is a combination of all the strings concatenated.
# create some strings$a = "Welcome";$b = " to";$c = "Nice to have you here!";# concatenate all strings$d = $a.$b." Edpresso! ".$c;# print the concatenated stringprint $d;we
.
.