To concatenate two strings in Perl, you can use the `.` operator or the `join()` function.
In this example,
$str1
and $str2
with values "Hello"
and "World"
respectively.$str2
to $str1
using the `.` operator and store the result in a variable named $result
.$result
to the console.$str1 = 'Hello';
$str2 = 'World';
$result = $str1 . $str2;
print $result;
HelloWorld
In this tutorial, we learned How to Concatenate Two Strings in Perl language with well detailed examples.