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;
 

No comments:

Post a Comment