Write a program to concatenate the $firststring and $secondstring and result of these strings should be separated by a single space.

Answer

Syntax:

$result = $firststring . ” “.$secondstring;

Program:

1
2
3
4
5
6
7
8
9
#!/usr/bin/perl
 
$firststring="abcd";
 
$secondstring="efgh";
 
$combine="$firststring $secondstring";
 
print"$Combine\n";

All perl Questions

Ask your interview questions on perl

Write Your comment or Questions if you want the answers on perl from perl Experts
Name* :
Email Id* :
Mob no* :
Question
Or
Comment* :
 





Disclimer: PCDS.CO.IN not responsible for any content, information, data or any feature of website. If you are using this website then its your own responsibility to understand the content of the website

--------- Tutorials ---