Showing posts with label Concatenation of two strings in perl. Show all posts
Showing posts with label Concatenation of two strings in perl. Show all posts

Thursday, October 20, 2022

Concatenation of two strings in perl

 

$a = "water";
$b = " bottle";
$c = $a . $b; # $c => water bottle
print $c;
 
 
 
$a = "Hello";
$a .= " World"; # $a => Hello World
print $a;